Class/Module Index [+]

Quicksearch

ActiveRecord::AttributeMethods::BeforeTypeCast

Public Instance Methods

attributes_before_type_cast() click to toggle source

Returns a hash of attributes before typecasting and deserialization.

# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-3.0.9/lib/active_record/attribute_methods/before_type_cast.rb, line 15
def attributes_before_type_cast
  Hash[attribute_names.map { |name| [name, read_attribute_before_type_cast(name)] }]
end
read_attribute_before_type_cast(attr_name) click to toggle source
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-3.0.9/lib/active_record/attribute_methods/before_type_cast.rb, line 10
def read_attribute_before_type_cast(attr_name)
  @attributes[attr_name]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.