Top Level Namespace
Defined Under Namespace
Modules: Decidim Classes: ProposalLengthValidator
Instance Method Summary collapse
Instance Method Details
#generate_state_title(token, skip_injection: false) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/decidim/proposals/test/factories.rb', line 8 def generate_state_title(token, skip_injection: false) value = I18n.t(token, scope: "decidim.proposals.answers") Decidim::Faker::Localized.localized do if skip_injection value else "<script>alert(\"proposal_state_title\");</script> #{value}" end end end |