Sha256: b72b96061ae0769a67d1a8e1657596f38bce696a5dc7d617cfe38f74eebf95d6
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
module OpenStax module Accounts module Dev class AccountsController < OpenStax::Accounts::Dev::BaseController # Allow accessing from inside an iframe before_action :allow_iframe_access, only: [:index, :search] def index end def search handle_with(AccountsSearch) end def create handle_with(AccountsCreate, complete: lambda { redirect_to dev_accounts_path }) end def become @account = Account.find(params[:id]) sign_in(@account) redirect_back key: :accounts_return_to, strategies: [:session] end private def allow_iframe_access response.headers.except! 'X-Frame-Options' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openstax_accounts-9.0.0 | app/controllers/openstax/accounts/dev/accounts_controller.rb |