Sha256: ab4c3af4ac3ffa27289f6b4b6bc5e4ca526b4db73ac54f40b5f0c19369ee7a5d
Contents?: true
Size: 438 Bytes
Versions: 6
Compression:
Stored size: 438 Bytes
Contents
class Admin::TrialExtensionsController < Admin::BaseController def create @account = Account.find_by_keyword(params[:account_id]) @account.reset_trial_expiration if @account.save redirect_to admin_account_path(@account) else flash[:error] = t("trial_extensions.show.invalid", :default => "The account's trial cannot be extended.") render "admin/accounts/show" end end end
Version data entries
6 entries across 6 versions & 1 rubygems