Sha256: 431dda9cd17aaedef0e68421366f0ac34a51e76c69ee2b1641e448b4b07f5034

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 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

5 entries across 5 versions & 1 rubygems

Version Path
authority-2.2.0 spec/support/example_controllers.rb
authority-2.1.0 spec/support/example_controllers.rb
authority-2.0.1 spec/support/example_controllers.rb
authority-2.0.0 spec/support/example_controllers.rb
authority-1.1.0 spec/support/example_controllers.rb