Sha256: 3770e4f8f9349442ae6598225afefff3120beace6711f1ea86f19e21815ff171

Contents?: true

Size: 735 Bytes

Versions: 26

Compression:

Stored size: 735 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}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
active_scaffold-3.1.8 lib/active_scaffold_env.rb
active_scaffold-3.1.7 lib/active_scaffold_env.rb
active_scaffold-3.1.6 lib/active_scaffold_env.rb
active_scaffold-3.1.5 lib/active_scaffold_env.rb
active_scaffold-3.1.4 lib/active_scaffold_env.rb
active_scaffold-3.1.3 lib/active_scaffold_env.rb