Sha256: fbd883c6290e43a7e11103913203e1cd20340b4820be169900c28357a91fe694
Contents?: true
Size: 913 Bytes
Versions: 29
Compression:
Stored size: 913 Bytes
Contents
class ActiveScaffold::Bridges::Cancan < ActiveScaffold::DataStructures::Bridge def self.install require File.join(File.dirname(__FILE__), 'cancan', 'cancan_bridge.rb') ActiveScaffold::Core::ClassMethods.send :include, ActiveScaffold::Bridges::Cancan::ClassMethods ActiveScaffold::Actions::Core.send :include, ActiveScaffold::Bridges::Cancan::Actions::Core ActiveScaffold::Actions::Nested.send :include, ActiveScaffold::Bridges::Cancan::Actions::Core ActionController::Base.send :include, ActiveScaffold::Bridges::Cancan::ModelUserAccess::Controller ActionView::Base.send :include, ActiveScaffold::Bridges::Cancan::AssociationHelpers ::ActiveRecord::Base.send :include, ActiveScaffold::Bridges::Cancan::ModelUserAccess::Model ::ActiveRecord::Base.send :include, ActiveScaffold::Bridges::Cancan::ActiveRecord end def self.install? Object.const_defined? 'CanCan' end end
Version data entries
29 entries across 29 versions & 1 rubygems