Sha256: 620b9531e03147b2f22634318f449e9f440fafe5bc5f6dc5d0092675f16a7029
Contents?: true
Size: 836 Bytes
Versions: 11
Compression:
Stored size: 836 Bytes
Contents
require "trailblazer/rails/version" module Trailblazer module Rails # Your code goes here... end end require "trailblazer/rails/railtie" require "trailblazer/operation" # TODO: remove that once i18n, validations etc in Reform/AM are sorted. Trailblazer::Operation.contract_class.class_eval do def self.name # for whatever reason, validations climb up the inheritance tree and require _every_ class to have a name (4.1). "Reform::Form" end end # Automatically set model_name on operation's contract when `Op::Model` is included. require "trailblazer/operation/model" require "trailblazer/operation/model/active_model" Trailblazer::Operation::Model::DSL.module_eval do include Trailblazer::Operation::Model::ActiveModel # ::contract. end require "trailblazer/autoloading" require "trailblazer/rails/autoloading"
Version data entries
11 entries across 11 versions & 1 rubygems