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.12.4 app/controllers/effective/subscripter_controller.rb
effective_orders-6.12.3 app/controllers/effective/subscripter_controller.rb
effective_orders-6.12.2 app/controllers/effective/subscripter_controller.rb
effective_orders-6.12.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.12.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.10 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.9 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.8 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.7 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.6 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.5 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.4 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.2 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.9.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.8.2 app/controllers/effective/subscripter_controller.rb
effective_orders-6.8.1 app/controllers/effective/subscripter_controller.rb
effective_orders-6.8.0 app/controllers/effective/subscripter_controller.rb
effective_orders-6.7.3 app/controllers/effective/subscripter_controller.rb
effective_orders-6.7.2 app/controllers/effective/subscripter_controller.rb