Sha256: eda1e97afa0c38ae1eeb72d10fc081774dffeecf7ece86f952e96a906f84b3d3
Contents?: true
Size: 426 Bytes
Versions: 19
Compression:
Stored size: 426 Bytes
Contents
class BMC::MiniFormObject < SimpleDelegator include ActiveModel::Validations extend Forwardable def valid? __getobj__.valid? run_validations! end def invalid? !valid? end alias validate valid? def validate! valid? || raise_validation_error end def_delegators :__getobj__, :errors def save valid? && __getobj__.save end def save! validate! && __getobj__.save! end end
Version data entries
19 entries across 19 versions & 1 rubygems