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