Module: CanTango::Permit::Helper::License
- Defined in:
- lib/cantango/permit/helper/license.rb
Instance Method Summary collapse
Instance Method Details
#license(name) ⇒ Object
10 11 12 13 |
# File 'lib/cantango/permit/helper/license.rb', line 10 def license name raise ArgumentError, "Argument must be a single label" if !name.kind_of_label? licenses name end |
#licenses(*names) ⇒ Object
4 5 6 7 8 |
# File 'lib/cantango/permit/helper/license.rb', line 4 def licenses *names names.to_strings.each do |name| try_license name end end |