Class: Socializer::Membership

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/socializer/membership.rb

Instance Method Summary collapse

Instance Method Details

#approve!Object



12
13
14
# File 'app/models/socializer/membership.rb', line 12

def approve!
  update_attribute(:active, true)
end

#confirm!Object



16
17
18
# File 'app/models/socializer/membership.rb', line 16

def confirm!
  update_attribute(:active, true)
end

#decline!Object



20
21
22
# File 'app/models/socializer/membership.rb', line 20

def decline!
  destroy
end

#memberObject



8
9
10
# File 'app/models/socializer/membership.rb', line 8

def member
  @member ||= activity_member.activitable
end