Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
squidgetx committed Mar 23, 2015
1 parent 6d09940 commit 1a2f8e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def initialize(user) # rubocop:disable all
end
can :read, EquipmentObject
can :read, EquipmentModel
can :override, :reservation_errors if AppConfig.check(:override_on_create)
can :override, :checkout_errors if AppConfig.check(:override_at_checkout)
can :override, :reservation_errors if AppConfig.get(:override_on_create)
can :override, :checkout_errors if AppConfig.get(:override_at_checkout)
when 'normal' || 'checkout'
can [:update, :show], User, id: user.id
can :read, EquipmentModel
Expand Down
2 changes: 1 addition & 1 deletion app/models/app_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def self.check(prop, val = false)

def self.get(prop, val = false)
# alias for semantics
return AppConfig.check(prop, val)
AppConfig.check(prop, val)
end
end

0 comments on commit 1a2f8e6

Please sign in to comment.