Class: Decidim::Voca::Organization::OrganizationCommand
- Inherits:
-
Command
- Object
- Command
- Decidim::Voca::Organization::OrganizationCommand
show all
- Defined in:
- app/commands/decidim/voca/organization/organization_command.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.command_name ⇒ Object
8
9
10
|
# File 'app/commands/decidim/voca/organization/organization_command.rb', line 8
def self.command_name
name.demodulize.camelize.stub(/_command/, "")
end
|
Instance Method Details
#command_name ⇒ Object
11
12
13
|
# File 'app/commands/decidim/voca/organization/organization_command.rb', line 11
def command_name
self.command_name
end
|
#organization ⇒ Object
5
6
7
|
# File 'app/commands/decidim/voca/organization/organization_command.rb', line 5
def organization
@organization ||= ::Decidim::Organization.first
end
|