ea8e9901f4
Your branch is behind 'origin/strong-params' by 1 commit, and can be fast-forwarded. I'll pull to catch up after this commit Change code to whitelist params Remove attr_accessible lines Add strong_params to Gemfile, since this branch is still on Rails 3 Mixin to ActiveRecord::Base ActiveModel::ForbiddenAttributesProtection Use an initializer for the mixin
6 lines
155 B
Ruby
6 lines
155 B
Ruby
class Schedule < ActiveRecord::Base
|
|
belongs_to :paid_time_off
|
|
|
|
validates_presence_of :date_begin, :date_end, :event_desc, :event_name, :event_type
|
|
end
|