Sha256: 5f7b7d7157fe517871a9643c4bb6a16b33721cf3c4fbce4a003b9dfb0a467f97

Contents?: true

Size: 867 Bytes

Versions: 7

Compression:

Stored size: 867 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}')]
#ActiveScaffold.js_framework = :jquery

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_scaffold_vho-3.0.31 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.30 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.29 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.28 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.27 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.26 lib/active_scaffold_env.rb
active_scaffold_vho-3.0.25 lib/active_scaffold_env.rb