Sha256: ed1fc9dc05a758bdd1be86d944656bbf8e2835db3146a859678dd9033428f6c8
Contents?: true
Size: 809 Bytes
Versions: 10
Compression:
Stored size: 809 Bytes
Contents
class ActiveScaffold::Bridges::Cancan < ActiveScaffold::DataStructures::Bridge def self.install require File.join(File.dirname(__FILE__), "cancan", "cancan_bridge.rb") ActiveScaffold::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 ::Sequel::Model.send :include, ActiveScaffold::Bridges::Cancan::ModelUserAccess::Model ::Sequel::Model.send :include, ActiveScaffold::Bridges::Cancan::ActiveRecord end def self.install? Object.const_defined? 'CanCan' end end
Version data entries
10 entries across 10 versions & 1 rubygems