Sha256: 1fee6740c421bbfcac9276001cce6ce06fcd972d78c3342cdb94e7a54d66ed54
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
module ActiveRecord::Turntable module ConfigurationMethods DEFAULT_PATH = File.dirname(File.dirname(__FILE__)) def turntable_configuration_file @turntable_configuration_file ||= File.join(turntable_app_root_path, "config/turntable.yml") end alias_method :turntable_config_file, :turntable_configuration_file deprecate turntable_config_file: "use turntable_configuration_file instead", deprecator: ActiveRecord::Turntable::Deprecation.instance def turntable_configuration_file=(filename) @turntable_configuration_file = filename end alias_method :turntable_config_file=, :turntable_configuration_file= deprecate "turntable_config_file=": "use turntable_configuration_file= instead", deprecator: ActiveRecord::Turntable::Deprecation.instance def turntable_app_root_path defined?(::Rails.root) ? ::Rails.root.to_s : DEFAULT_PATH end def turntable_config turntable_configuration end deprecate turntable_config: "use turntable_configuration instead", deprecator: ActiveRecord::Turntable::Deprecation.instance end end
Version data entries
6 entries across 6 versions & 1 rubygems