Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # == Schema Information
- #
- # Table name: posts
- #
- # id :integer(11) not null, primary key
- # user_id :integer(11)
- # anonymous :boolean(1)
- # ...
- class Post < ActiveRecord::Base
- extend Anonymizer
- belongs_to :user
- anonymize_method :user
- anonymize_attribute :user_id
- end
Add Comment
Please, Sign In to add comment