Sha256: 075c088285686a2d0b91170d5639b212c4bf1ce5760898ebd7125be02efb439a
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
class SpudUser < ActiveRecord::Base has_many :spud_admin_permissions,:foreign_key => :user_id accepts_nested_attributes_for :spud_admin_permissions, :allow_destroy => true attr_protected :super_admin acts_as_authentic do |c| # c.my_config_option = my_value # for available options see documentation in: Authlogic::ActsAsAuthentic end # block optional def full_name if first_name.blank? && last_name.blank? return self.login end return "#{self.first_name} #{self.last_name}" end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
spud_core-0.4.0 | app/models/spud_user.rb |
spud_admin-0.2.0 | app/models/spud_user.rb |