Module: WithOrganizationStatus

Included in:
Organization
Defined in:
app/models/concerns/with_organization_status.rb

Instance Method Summary collapse

Instance Method Details

#statusObject



5
6
7
# File 'app/models/concerns/with_organization_status.rb', line 5

def status
  @status ||= _status
end

#validate_active!Object



9
10
11
# File 'app/models/concerns/with_organization_status.rb', line 9

def validate_active!
  status.validate!
end

#validate_active_for!(user) ⇒ Object



13
14
15
16
# File 'app/models/concerns/with_organization_status.rb', line 13

def validate_active_for!(user)
  status.validate!(user)
  access_mode(user).validate_active!
end