Sha256: 848e26fffd10e301626f59df53623e107b55d5abb61a2177d788b4710e71bc47
Contents?: true
Size: 1.58 KB
Versions: 7
Compression:
Stored size: 1.58 KB
Contents
module ActiveScaffold class Engine < ::Rails::Engine initializer 'active_scaffold.action_controller' do ActiveSupport.on_load :action_controller do include ActiveScaffold::Core include ActiveScaffold::DelayedSetup if ActiveScaffold.delayed_setup include ActiveScaffold::RespondsToParent include ActiveScaffold::Helpers::ControllerHelpers include ActiveScaffold::ActiveRecordPermissions::ModelUserAccess::Controller ActiveScaffold::Bridges.prepare_all end end initializer 'active_scaffold.action_view' do ActiveSupport.on_load :action_view do include ActiveScaffold::Helpers::ViewHelpers end end initializer 'active_scaffold.active_record' do ActiveSupport.on_load :active_record do include ActiveScaffold::ActiveRecordPermissions::ModelUserAccess::Model module ActiveRecord::Associations Association.send :include, ActiveScaffold::Tableless::Association CollectionAssociation.send :include, ActiveScaffold::Tableless::CollectionAssociation SingularAssociation.send :include, ActiveScaffold::Tableless::SingularAssociation end module ActiveRecord::ConnectionAdapters AbstractAdapter.send :include, ActiveScaffold::ConnectionAdapters::AbstractAdapter if defined?(PostgreSQLAdapter) PostgreSQLAdapter.send :include, ActiveScaffold::ConnectionAdapters::PostgreSQLAdapter end end end end config.assets.precompile << 'active_scaffold/indicator.gif' if Rails::VERSION::MAJOR >= 4 end end
Version data entries
7 entries across 7 versions & 1 rubygems