sequel-rails 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
data/lib/sequel-rails/railtie.rb
CHANGED
@@ -47,13 +47,15 @@ module Rails
|
|
47
47
|
setup_controller_runtime(app)
|
48
48
|
end
|
49
49
|
|
50
|
+
initializer "sequel.connect" do |app|
|
51
|
+
Rails::Sequel.setup(Rails.env)
|
52
|
+
end
|
53
|
+
|
50
54
|
# Run setup code after_initialize to make sure all config/initializers
|
51
55
|
# are in effect once we setup the connection. This is especially necessary
|
52
56
|
# for the cascaded adapter wrappers that need to be declared before setup.
|
53
57
|
|
54
58
|
config.after_initialize do |app|
|
55
|
-
Rails::Sequel.setup(Rails.env)
|
56
|
-
|
57
59
|
::Sequel::Model.plugin :active_model
|
58
60
|
::Sequel::Model.plugin :validation_helpers
|
59
61
|
|
data/sequel-rails.gemspec
CHANGED