Sha256: 60e9c7992a50f182baad507fc04e5eb968fae086cf28acbf54919f45a00993cc

Contents?: true

Size: 542 Bytes

Versions: 44

Compression:

Stored size: 542 Bytes

Contents

module Effective
  class SubscripterController < ApplicationController
    layout (EffectiveOrders.layout.kind_of?(Hash) ? EffectiveOrders.layout[:subscriptions] : EffectiveOrders.layout)

    include Effective::CrudController

    submit :save, 'Save', redirect: :back, success: -> { 'Successfully updated plan.' }

    def resource
      @subscripter ||= Effective::Subscripter.new(current_user: current_user)
    end

    # StrongParameters
    def subscripter_params
      params.require(:effective_subscripter).permit!
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
effective_orders-4.6.3 app/controllers/effective/subscripter_controller.rb
effective_orders-4.6.2 app/controllers/effective/subscripter_controller.rb
effective_orders-4.6.0 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.12 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.11 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.10 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.9 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.8 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.7 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.6 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.5 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.4 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.3 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.2 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.1 app/controllers/effective/subscripter_controller.rb
effective_orders-4.5.0 app/controllers/effective/subscripter_controller.rb
effective_orders-4.4.10 app/controllers/effective/subscripter_controller.rb
effective_orders-4.4.9 app/controllers/effective/subscripter_controller.rb
effective_orders-4.4.8 app/controllers/effective/subscripter_controller.rb
effective_orders-4.4.7 app/controllers/effective/subscripter_controller.rb