method
normalize_conditions
v2.0.3 -
Show latest stable
- Class:
ActionController::Layout::ClassMethods
normalize_conditions(conditions)private
No documentation available.
# File actionpack/lib/action_controller/layout.rb, line 207
def normalize_conditions(conditions)
conditions.inject({}) {|hash, (key, value)| hash.merge(key => [value].flatten.map {|action| action.to_s})}
end