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]
|
||||
record = self.where( :name => data[:name] ).first
|
||||
if record
|
||||
puts 'update ' + data[:name].to_s
|
||||
record.update_attributes( :data => data[:data] )
|
||||
else
|
||||
puts 'create ' + data[:name].to_s
|
||||
record = self.new( data )
|
||||
record.save
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue