Module: Saucy::User::InstanceMethods
- Defined in:
- lib/saucy/user.rb
Instance Method Summary collapse
Instance Method Details
#admin_of?(account) ⇒ Boolean
15 16 17 |
# File 'lib/saucy/user.rb', line 15 def admin_of?(account) memberships.exists?(:account_id => account.id, :admin => true) end |
#member_of?(account_or_project) ⇒ Boolean
19 20 21 |
# File 'lib/saucy/user.rb', line 19 def member_of?(account_or_project) account_or_project.has_member?(self) end |