lib/sequel_rails/railtie.rb in sequel-rails-0.4.1 vs lib/sequel_rails/railtie.rb in sequel-rails-0.4.2
- old
+ new
@@ -30,10 +30,12 @@
config.action_dispatch.rescue_responses.merge!(
"Sequel::Plugins::RailsExtensions::ModelNotFound" => :not_found,
"Sequel::ValidationFailed" => :unprocessable_entity,
"Sequel::NoExistingObject" => :unprocessable_entity
)
+
+ config.sequel = ActiveSupport::OrderedOptions.new
rake_tasks do
load "sequel_rails/railties/database.rake"
end
@@ -60,10 +62,10 @@
# Support overwriting crucial steps in subclasses
def configure_sequel(app)
app.config.sequel = ::SequelRails::Configuration.for(
::Rails.root, app.config.database_configuration
- )
+ ).merge!(app.config.sequel)
end
def setup_i18n_support(app)
::Sequel::Model.send :include, ::SequelRails::I18nSupport
end