Class: Property::AttributeError

Inherits:
ActiveRecord::Error
  • Object
show all
Defined in:
lib/property/properties.rb

Instance Method Summary collapse

Instance Method Details

#default_optionsObject



3
4
5
6
7
# File 'lib/property/properties.rb', line 3

def default_options
  options.reverse_merge :scope => [:activerecord, :errors],
                        :model => @base.class.human_name,
                        :attribute => @base.class.human_attribute_name(attribute.to_s)
end

#valueObject

SECURITY: MAKE SURE WE DO NOT SEND. Value is already in ‘options’.



11
12
13
# File 'lib/property/properties.rb', line 11

def value
  nil
end