Method: Planify::Plan#max

Defined in:
lib/planify/plan.rb

#max(limitable, limit) ⇒ Object

Sets the maximum number of a Planify::Limitable that a user can create on this plan

Parameters:

  • limitable (String, Symbol, Class, Object)

    The class to set the limit of

  • limit (Integer)

    The maxiumum number of limitable that can be created



16
17
18
# File 'lib/planify/plan.rb', line 16

def max(limitable, limit)
  @limits.set(limitable, limit)
end