Class: PaidUp::RolifyFeatureSettingType

Inherits:
FeatureSettingType show all
Defined in:
lib/paid_up/feature_setting_types/rolify.rb

Overview

Class for ‘rolify_rows’ feature setting type

Instance Attribute Summary

Attributes inherited from FeatureSettingType

#name, #user

Instance Method Summary collapse

Methods inherited from FeatureSettingType

#ids, #model, #rows_allowed, #rows_count, #rows_remaining, #rows_unlimited?, #scope

Instance Method Details

#rowsObject



6
7
8
# File 'lib/paid_up/feature_setting_types/rolify.rb', line 6

def rows
  scope.with_role(:owner, user)
end