Sha256: 6da30fe92f284fade454046373bbcf11011f133ef28e15bc8dbca9b395f6e469

Contents?: true

Size: 570 Bytes

Versions: 144

Compression:

Stored size: 570 Bytes

Contents

module Effective
  class SubscripterController < ApplicationController
    include Effective::CrudController

    if (config = EffectiveOrders.layout)
      layout(config.kind_of?(Hash) ? (config[:subscriptions] || config[:application]) : config)
    end

    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

144 entries across 144 versions & 1 rubygems

Version Path
effective_orders-6.4.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.3.2 app/controllers/effective/subscripter_controller.rb
effective_orders-6.3.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.3.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.2.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.2.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.5 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.4 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.3 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.2 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.1.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.0.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.0.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.9.4 app/controllers/effective/subscripter_controller.rb
effective_orders-5.9.3 app/controllers/effective/subscripter_controller.rb
effective_orders-5.9.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.9.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.9.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.8.2 app/controllers/effective/subscripter_controller.rb