Introduce strong parameters
This commit is contained in:
parent
38bc2e3c3a
commit
355ecc0ac6
93 changed files with 172 additions and 241 deletions
|
|
@ -1,8 +1,6 @@
|
|||
class Commercial < ActiveRecord::Base
|
||||
belongs_to :commercialable, polymorphic: true
|
||||
|
||||
attr_accessible :commercial_id, :commercial_type
|
||||
|
||||
validates :commercial_id, presence: true
|
||||
validates :commercial_type, presence: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue