Sha256: 60565c596c26e3de52a5fdd541060f12b4b4970ec01cf009c94d782f8305a794
Contents?: true
Size: 735 Bytes
Versions: 34
Compression:
Stored size: 735 Bytes
Contents
module OpenStax module Accounts module Dev class AccountsCreate lev_handler paramify :create do attribute :username, type: String validates :username, presence: true 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)) end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems