mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Assigns meaningful names to the boolean conditions to make it easier to understand, breaks down the big and nested if/else and converts the specs to RSpec 3. Note the check `!spree_current_user.admin?` has been removed because in admin/base_controller_decorator.rb `#authorize_admin` is already called.