Skip to content

Commit

Permalink
commands helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Aug 2, 2012
1 parent 4df03e6 commit 1ca3b95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/controll/helper.rb
Expand Up @@ -7,8 +7,10 @@ module Helper

include ActiveSupport::Concern

included do
commands.each {|command| command_method command} if commands && commands.kind_of?(Array)
module ClassMethods
def commands *methods
methods.each { |meth| command_method meth }
end
end

def do_redirect path
Expand Down

0 comments on commit 1ca3b95

Please sign in to comment.