Class: Decidim::SpamSignal::ApplicationHandler
- Inherits:
-
Command
- Object
- Rectify::Command
- Command
- Decidim::SpamSignal::ApplicationHandler
show all
- Defined in:
- app/commands/decidim/spam_signal/application_handler.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
6
7
8
|
# File 'app/commands/decidim/spam_signal/application_handler.rb', line 6
def self.form
raise Error, "Handler need to define a form or return null"
end
|
.handler_name ⇒ Object
10
11
12
|
# File 'app/commands/decidim/spam_signal/application_handler.rb', line 10
def self.handler_name
name.demodulize.underscore.sub(/(_cop|_scan)(_form|_command)/, "")
end
|
.i18n_key ⇒ Object
18
19
20
|
# File 'app/commands/decidim/spam_signal/application_handler.rb', line 18
def self.i18n_key
raise Error, "Not Implemented"
end
|
Instance Method Details
#config ⇒ Object
22
23
24
|
# File 'app/commands/decidim/spam_signal/application_handler.rb', line 22
def config
raise Error, "Not Implemented"
end
|
#handler_name ⇒ Object
14
15
16
|
# File 'app/commands/decidim/spam_signal/application_handler.rb', line 14
def handler_name
self.class.handler_name
end
|