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-5.1.16 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.15 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.14 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.13 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.12 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.11 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.10 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.9 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.8 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.7 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.6 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.5 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.4 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.3 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.1.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.0.5 app/controllers/effective/subscripter_controller.rb
effective_orders-5.0.4 app/controllers/effective/subscripter_controller.rb
effective_orders-5.0.3 app/controllers/effective/subscripter_controller.rb