vyorkin/synchronisable

View on GitHub
lib/generators/synchronisable/templates/initializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
Synchronisable.configure do |config|
  # Logging configuration
  #
  # Default logger fallbacks to `Rails.logger` if available, otherwise
  # `STDOUT` will be used for output.
  #
  # config.logging = {
  #   :logger   => defined?(Rails) ? Rails.logger : Logger.new(STDOUT),
  #   :verbose  => true,
  #   :colorize => true
  # }

  # You can restrict synchronized models by specifying their class names.
  # By default it will try to sync all models that have
  # a `synchronisable` dsl instruction.
  #
  # config.models = %w(Foo Bar)

  # What to do with an associated import record
  # when its synchronisable is destroyed. Default is `:destroy`.
  # For other available options see:
  # http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
  #
  # config.dependent_import = :destroy
end