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

Version Path
active_scaffold-sequel-0.8.0 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.7.1 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.7.0 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.6.2 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.6.1 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.6.0 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.5.1 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.5.0 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.4.0 lib/active_scaffold/bridges/cancan.rb
active_scaffold-sequel-0.3.0 lib/active_scaffold/bridges/cancan.rb