models inherits from ApplicationRecord

This commit is contained in:
Juanjo Bazán
2016-09-14 12:31:59 +02:00
committed by Julian Herrero
parent aa3e8c8458
commit b7d9ef6377
27 changed files with 29 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
class Notification < ActiveRecord::Base
class Notification < ApplicationRecord
belongs_to :user, counter_cache: true
belongs_to :notifiable, polymorphic: true