Sha256: b893c1695a03d37dc9cc09fb87c2501629ec8d8cb1bfcab3e40fe4471d6c68f7
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true require 'reform/form/coercion' require 'reform/form/dry' module Pragma module Contract # This is the base contract that all of your resource-specific contracts should inherit from. # # It's just an extension of +Reform::Form+ with some helper methods for coercion. # # @author Alessandro Desantis class Base < Reform::Form feature Reform::Form::Coercion feature Reform::Form::Dry include Pragma::Contract::Coercion property :current_user, virtual: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pragma-contract-2.0.0 | lib/pragma/contract/base.rb |