Cruft removed from Log model
This commit is contained in:
parent
7e7838e7ad
commit
4ad718d854
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
require 'pry'
|
# require 'pry'
|
||||||
|
|
||||||
class Log < ActiveRecord::Base
|
class Log < ActiveRecord::Base
|
||||||
validates :message, presence: true
|
validates :message, presence: true
|
||||||
|
|
@ -26,6 +26,6 @@ class Log < ActiveRecord::Base
|
||||||
log.token = token
|
log.token = token
|
||||||
logger.error "Could not log to database - validation errors: #{log.errors.to_a}" unless log.valid?
|
logger.error "Could not log to database - validation errors: #{log.errors.to_a}" unless log.valid?
|
||||||
log.save
|
log.save
|
||||||
log
|
# log
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue