module BetterParams::Base::PrepareNestedAttributes

Public Instance Methods

prepare_nested_attributes(*keys) click to toggle source
# File lib/better_params/base/prepare_nested_attributes.rb, line 4
def prepare_nested_attributes(*keys)
  convert_keys(keys) { |key| "#{key}_attributes".to_sym }
end