Removed debug info.
This commit is contained in:
parent
267d153f2d
commit
2c505a5601
1 changed files with 0 additions and 2 deletions
|
@ -55,10 +55,8 @@ class ApplicationModel < ActiveRecord::Base
|
||||||
if data[:name]
|
if data[:name]
|
||||||
record = self.where( :name => data[:name] ).first
|
record = self.where( :name => data[:name] ).first
|
||||||
if record
|
if record
|
||||||
puts 'update ' + data[:name].to_s
|
|
||||||
record.update_attributes( :data => data[:data] )
|
record.update_attributes( :data => data[:data] )
|
||||||
else
|
else
|
||||||
puts 'create ' + data[:name].to_s
|
|
||||||
record = self.new( data )
|
record = self.new( data )
|
||||||
record.save
|
record.save
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue