lagotto / alm-report

ALM Reports
http://almreports.plos.org/
MIT License
8 stars 3 forks source link

Avoid Ruby 2.1 syntax #144

Closed mfenner closed 9 years ago

mfenner commented 9 years ago

As many users will be running this application with Ruby 2.0, we should avoid Ruby 2.1 syntax such as

 def toggle(name:, value:)
    if @facets[name][value][:selected]
      deselect(name: name, value: value)
    else
      select(name: name, value: value)
    end
  end