Class: Lighthouse::User
- Defined in:
- lib/fresnel/lighthouse.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Class Method Details
.find(*args, &block) ⇒ Object
175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/fresnel/lighthouse.rb', line 175 def self.find(*args, &block) if (user_id = args.first.to_i) > 0 cache = Cache.new cache = Cache.new cache.load(:name => "user_#{user_id}") do super(*args, &block) end else super(*args, &block) end end |
Instance Method Details
#memberships(options = {}) ⇒ Object
187 188 189 |
# File 'lib/fresnel/lighthouse.rb', line 187 def memberships( = {}) Membership.find(:all, :params => {:user_id => id}) end |