lib/generators/dry_crud/templates/app/helpers/crud_helper.rb
def attrs_or_default(attrs)
    options = attrs.extract_options!
    attrs = yield if attrs.blank?
    attrs << options
  end
# Returns default attrs for a crud table if no others are passed.
Returns default attrs for a crud table if no others are passed.
Returns default attrs for a crud table if no others are passed .
def attrs_or_default(attrs)
    options = attrs.extract_options!
    attrs = yield if attrs.blank?
    attrs << options
  end
def attrs_or_default ( attrs ) options = attrs . extract_options! attrs = yield if attrs . blank? attrs << options end
Returns default attrs for a crud table if no others are passed.
Returns default attrs for a crud table if no others are passed .
attrs