Use new "strong parameters" from rails4
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
class Playlist < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
attr_accessible :name
|
||||
|
||||
validates_presence_of :user
|
||||
validates_presence_of :name
|
||||
end
|
||||
|
@@ -3,8 +3,6 @@ require 'fileutils'
|
||||
class Sound < ActiveRecord::Base
|
||||
belongs_to :track
|
||||
|
||||
attr_accessible :file
|
||||
|
||||
validates_presence_of :sha256
|
||||
validates_presence_of :mime_type
|
||||
|
||||
|
@@ -1,8 +1,6 @@
|
||||
class Track < ActiveRecord::Base
|
||||
has_many :sounds
|
||||
|
||||
attr_accessible :name, :file
|
||||
|
||||
validates_presence_of :name
|
||||
|
||||
def file=(file)
|
||||
|
@@ -4,7 +4,6 @@ class User < ActiveRecord::Base
|
||||
include BCrypt
|
||||
|
||||
attr_reader :password
|
||||
attr_accessible :email, :password, :password_confirmation
|
||||
|
||||
has_many :playlists
|
||||
|
||||
|
Reference in New Issue
Block a user