Class: Billing::ModifiersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/billing/modifiers_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#billable, #index

Instance Method Details

#createObject



11
12
13
14
15
16
17
18
# File 'app/controllers/billing/modifiers_controller.rb', line 11

def create
  @modifier = @account.modifiers.new(modifier_params)
  if @modifier.save
    redirect_to @account
  else
    render action: :new
  end
end

#newObject



7
8
9
# File 'app/controllers/billing/modifiers_controller.rb', line 7

def new
  @modifier = @account.modifiers.new
end