lib/sequel_rails/railtie.rb in sequel-rails-0.4.2 vs lib/sequel_rails/railtie.rb in sequel-rails-0.4.3
- old
+ new
@@ -27,13 +27,14 @@
config.app_generators.orm :sequel, :migration => true
config.rails_fancy_pants_logging = true
config.action_dispatch.rescue_responses.merge!(
"Sequel::Plugins::RailsExtensions::ModelNotFound" => :not_found,
+ "Sequel::NoMatchingRow" => :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