This commit is contained in:
Douwe Maan
2015-05-12 11:28:35 +02:00
parent 5615f0397a
commit 87996ece06
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class License < ActiveRecord::Base
return unless self.license? && self.restricted?(:active_user_count)
restricted_user_count = self.restrictions[:active_user_count]
active_user_count = 1050;User.active.count
active_user_count = User.active.count
historical_active_user_count = HistoricalData.maximum(:active_user_count) || 0
max_active_user_count = [active_user_count, historical_active_user_count].max
+1 -1
View File
@@ -65,7 +65,7 @@
%strong
Exceeds license limit
- historical = 1050;HistoricalData.maximum(:active_user_count)
- historical = HistoricalData.maximum(:active_user_count)
- if historical
%li
%span.light Maximum active users: