- Reorganizing installation config settings to move more configurations into UI from environment variables - Changes to installation config to support premium plans in the enterprise edition - Fixes the broken premium indicator in account/show and accounts/edit page
10 lines
268 B
Ruby
10 lines
268 B
Ruby
module SuperAdmin::AccountFeaturesHelper
|
|
def self.account_features
|
|
YAML.safe_load(Rails.root.join('config/features.yml').read).freeze
|
|
end
|
|
|
|
def self.account_premium_features
|
|
account_features.filter { |feature| feature['premium'] }.pluck('name')
|
|
end
|
|
end
|