Module: ReaderUser

Defined in:
lib/reader_user.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/reader_user.rb', line 3

def self.included(base)
  extend ClassMethods
  base.class_eval do
    has_one :reader, :dependent => :nullify
    attr_accessor :skip_reader_update
    include InstanceMethods
    before_save :update_reader    # there is already a before_update call that hashes the password, so we need to come in before that
  end
end