module BlankAttributes::Blankable

Public Instance Methods

blank_attribute(*args) click to toggle source
# File lib/blank_attributes/blankable.rb, line 5
def blank_attribute(*args)
  class_attribute :blankable_attributes
  self.blankable_attributes = args.map(&:to_sym)

  include BlankAttributes::Blankable::BlankableMethods
end
Also aliased as: blank_attributes
blank_attributes(*args)
Alias for: blank_attribute
has_blankable_attribute?() click to toggle source
# File lib/blank_attributes/blankable.rb, line 13
def has_blankable_attribute?
  blankable_attributes.any?
end