Introduce strong parameters
This commit is contained in:
parent
38bc2e3c3a
commit
355ecc0ac6
93 changed files with 172 additions and 241 deletions
|
|
@ -5,14 +5,12 @@ class AssignUsersToEvents < ActiveRecord::Migration
|
|||
|
||||
class TempUser < ActiveRecord::Base
|
||||
self.table_name = 'users'
|
||||
attr_accessible :email, :name, :biography, :password
|
||||
end
|
||||
|
||||
class TempEventUser < ActiveRecord::Base
|
||||
self.table_name = 'event_users'
|
||||
belongs_to :temp_event
|
||||
belongs_to :temp_user
|
||||
attr_accessible :event_id, :user_id, :event_role
|
||||
end
|
||||
|
||||
def up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue