Class: Decidim::LogReferenceGenerator
- Inherits:
-
Object
- Object
- Decidim::LogReferenceGenerator
- Defined in:
- app/services/decidim/log_reference_generator.rb
Instance Method Summary collapse
- #generate_reference ⇒ Object
-
#initialize(request) ⇒ LogReferenceGenerator
constructor
A new instance of LogReferenceGenerator.
Constructor Details
#initialize(request) ⇒ LogReferenceGenerator
Returns a new instance of LogReferenceGenerator.
5 6 7 |
# File 'app/services/decidim/log_reference_generator.rb', line 5 def initialize(request) @request = request end |
Instance Method Details
#generate_reference ⇒ Object
9 10 11 12 |
# File 'app/services/decidim/log_reference_generator.rb', line 9 def generate_reference = (Rails.configuration.) .collect { |tag| "[#{tag}] " }.join if end |