Sha256: ef1ee62ec9e0ce6ad0674c794ab141a052760672f27e6532db996dc665fd8f40
Contents?: true
Size: 402 Bytes
Versions: 10
Compression:
Stored size: 402 Bytes
Contents
module Micronaut module Rails module Extensions module ActiveRecord def errors_on(attribute) self.valid? [self.errors.on(attribute)].flatten.compact end alias :error_on :errors_on end end end end if defined?(::ActiveRecord::Base) ::ActiveRecord::Base.send(:include, ::Micronaut::Rails::Extensions::ActiveRecord) end
Version data entries
10 entries across 10 versions & 2 rubygems