Module: PaidUp::Mixins::PaidFor::ClassMethods

Defined in:
lib/paid_up/mixins/paid_for.rb

Overview

Extended by paid_for mixin

Instance Method Summary collapse

Instance Method Details

#featureObject



29
30
31
# File 'lib/paid_up/mixins/paid_for.rb', line 29

def feature
  PaidUp::Feature.find_by_slug(table_name)
end


33
34
35
# File 'lib/paid_up/mixins/paid_for.rb', line 33

def paid_for_scope
  unscoped { send(paid_for_scope_symbol) }
end