Specify models attributes that must not be mass assignated
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
class Playlist < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
attr_accessible :name
|
||||
|
||||
validates_presence_of :user
|
||||
validates_presence_of :name
|
||||
end
|
||||
|
Reference in New Issue
Block a user