lib/avo/licensing/license_manager.rb in avo-0.5.0.beta9 vs lib/avo/licensing/license_manager.rb in avo-0.5.0.beta10
- old
+ new
@@ -4,15 +4,15 @@
def initialize(hq_response)
@hq_response = hq_response
end
def license
- return NullLicense.new if Rails.env.test? and ENV['RUN_WITH_NULL_LICENSE'] == '1'
+ return NullLicense.new if Rails.env.test? && (ENV["RUN_WITH_NULL_LICENSE"] == "1")
- case @hq_response['id']
- when 'community'
+ case @hq_response["id"]
+ when "community"
CommunityLicense.new @hq_response
- when 'pro'
+ when "pro"
ProLicense.new @hq_response
else
NullLicense.new @hq_response
end
end