# File lib/six.rb, line 159 def allowed?(object, actions, subject) # if multiple actions passed # check all actions to be allowed if actions.respond_to?(:each) actions.all? { |action| action_included?(object, action, subject) } else # single action check action_included?(object, actions, subject) end end