Class: Decidim::Voca::Organization::OrganizationCommand

Inherits:
Command
  • Object
show all
Defined in:
app/commands/decidim/voca/organization/organization_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.command_nameObject



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_nameObject



11
12
13
# File 'app/commands/decidim/voca/organization/organization_command.rb', line 11

def command_name
  self.command_name
end

#organizationObject



5
6
7
# File 'app/commands/decidim/voca/organization/organization_command.rb', line 5

def organization
  @organization ||= ::Decidim::Organization.first
end