Sha256: 9476d31f3bc17631bec69ab64ddffef6f9c8f3e0ef4b4cc8d899e5616beb2506

Contents?: true

Size: 836 Bytes

Versions: 7

Compression:

Stored size: 836 Bytes

Contents

# TODO: clean up extensions. some could be organized for autoloading, and others could be removed entirely.
Dir["#{File.dirname __FILE__}/active_scaffold/extensions/*.rb"].each { |file| require file }

ActionController::Base.send(:include, ActiveScaffold)
ActionController::Base.send(:include, RespondsToParent)
ActionController::Base.send(:include, ActiveScaffold::Helpers::ControllerHelpers)
ActionView::Base.send(:include, ActiveScaffold::Helpers::ViewHelpers)

ActionController::Base.class_eval {include ActiveRecordPermissions::ModelUserAccess::Controller}
ActiveRecord::Base.class_eval     {include ActiveRecordPermissions::ModelUserAccess::Model}
ActiveRecord::Base.class_eval     {include ActiveRecordPermissions::Permissions}

I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'active_scaffold', 'locale', '*.{rb,yml}')]

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
active_scaffold-3.0.26 lib/active_scaffold_env.rb
active_scaffold-3.0.25 lib/active_scaffold_env.rb
active_scaffold_clarity-3.0.24.2 lib/active_scaffold_env.rb
active_scaffold-3.0.24 lib/active_scaffold_env.rb
active_scaffold-3.0.23 lib/active_scaffold_env.rb
active_scaffold-3.0.22 lib/active_scaffold_env.rb
active_scaffold-3.0.21 lib/active_scaffold_env.rb