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.8.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.8.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.7.4 app/controllers/effective/subscripter_controller.rb
effective_orders-5.7.3 app/controllers/effective/subscripter_controller.rb
effective_orders-5.7.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.7.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.7.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.6.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.6.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.6.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.5.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.5.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.5.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.4.4 app/controllers/effective/subscripter_controller.rb
effective_orders-5.4.3 app/controllers/effective/subscripter_controller.rb
effective_orders-5.4.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.4.1 app/controllers/effective/subscripter_controller.rb
effective_orders-5.4.0 app/controllers/effective/subscripter_controller.rb
effective_orders-5.3.2 app/controllers/effective/subscripter_controller.rb
effective_orders-5.3.1 app/controllers/effective/subscripter_controller.rb