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