Sha256: c3ae4b5b8f4d52d034dd0879df232edbf7095198edfe2b4efff3ccca09601be0
Contents?: true
Size: 695 Bytes
Versions: 17
Compression:
Stored size: 695 Bytes
Contents
module OpenStax module Accounts module Dev class AccountsCreate lev_handler paramify :create do attribute :username, type: String attribute :role, type: String end uses_routine OpenStax::Accounts::Dev::CreateAccount, as: :create_account, translations: { inputs: { scope: :create }, outputs: { type: :verbatim } } protected def authorized? !Rails.env.production? && OpenStax::Accounts.configuration.enable_stubbing? end def handle run(:create_account, create_params.as_hash(:username, :role)) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems