Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TimeBlock
- attr_accessor :recurring
- attr_accessible :recurring
- before_validation :set_recurring
- def set_recurring
- # at breakpoint...
- p self # -> #<TimeBlock id: nil, created_at: nil, updated_at: nil, recurring: false>
- p recurring # -> true
- p self.recurring # -> true
- p @recurring # -> true
- end
- end
Add Comment
Please, Sign In to add comment