Sha256: 0aa87d74bf174545b99cfe057fa61417a7a50e325d5e7513368932840c3e19d5

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

module MockController
  def rescue_from(*args) ; end
  def before_filter(*args) ; end
end

# this controller will have `authority_actions_for` called on it
class ExampleController
  extend MockController
  include Authority::Controller
end

class DummyController < ExampleController
end

class InstanceController < ExampleController
end

# this controller will not have `authority_actions_for` called on it but will
# have `authority_action_for` called on it
class SampleController
  extend MockController
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authority-1.0.0 spec/support/example_controllers.rb
authority-1.0.0.pre4 spec/support/example_controllers.rb
authority-1.0.0.pre3 spec/support/example_controllers.rb