class Exits::Rules
Public Class Methods
new()
click to toggle source
# File lib/exits/rules.rb, line 8 def initialize @controllers = Hash.new end
Public Instance Methods
add(controller_class, klass, *actions)
click to toggle source
# File lib/exits/rules.rb, line 12 def add(controller_class, klass, *actions) @controllers[controller_class] ||= Exits::Rules::Controller.new @controllers[controller_class][klass] = actions.flatten end