Skip to content

Commit

Permalink
use application_record template
Browse files Browse the repository at this point in the history
  • Loading branch information
vicvega committed Apr 1, 2019
1 parent a043756 commit 369b086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/models/application_record.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
2 changes: 1 addition & 1 deletion app/models/log.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Log < ActiveRecord::Base
class Log < ApplicationRecord
Severities = %w( emerg alert crit err warning notice info debug )

validates_presence_of :severity, :message
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class User < ActiveRecord::Base
class User < ApplicationRecord
include Authorizable
# Include default devise modules. Others available are:
# :registerable, :confirmable, :lockable and :omniauthable
Expand Down

0 comments on commit 369b086

Please sign in to comment.