Module: RejectDeeplyNested

Defined in:
lib/reject_deeply_nested.rb,
lib/reject_deeply_nested/version.rb

Constant Summary collapse

DEFAULT_IGNORE_VALUES =
[/_destroy/]
BLANK =
proc { |attributes| deep_blank?(attributes) }
SMART_BLANK =
proc do |ignore_values, attributes|
  deep_blank?(attributes, Array(ignore_values) + DEFAULT_IGNORE_VALUES)
end
ANY_MISSED =
proc do |fields, attributes|
  fields.any? { |field| attributes[field].blank? }
end
VERSION =
"0.2.0"