Creating an alias method for the "record" method based on the klass name, so that we can do:
session.user
instead of:
session.record
# File lib/authlogic/session/klass.rb, line 50 def initialize(*args) if !self.class.configured_klass_methods self.class.send(:alias_method, klass_name.demodulize.underscore.to_sym, :record) self.class.configured_klass_methods = true end super end
Generated with the Darkfish Rdoc Generator 2.