lib/scaffolding_extensions/meta_model.rb
# Set the object's attributes with the given attributes
Set the object's attributes with the given attributes
Set the object ' s attributes with the given attributes
def scaffold_set_attributes(object, attributes)
      attributes.each do |k,v|
        v = nil if v.empty? and scaffold_table_column_type(k) == :boolean
        object.send("#{k}=", v)
      end 
    end
def scaffold_set_attributes ( object , attributes ) attributes . each do | k , v | v = nil if v . empty? and scaffold_table_column_type ( k ) == :boolean object . send ( "#{k}=" , v ) end end
Set the object's attributes with the given attributes
Set the object ' s attributes with the given attributes
object
<not_specific>
attributes
<not_specific>