Module: Law::Laws::Petitions
Instance Method Summary collapse
Instance Method Details
#petition_for_action(action) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/law/laws/petitions.rb', line 16 def petition_for_action(action) return if revoked_action?(action) Law::Petition.new( statute: actions[action] || _default_statute, source: source, permissions: , target: target, params: params, ) end |