Sha256: 1603310118e8771b21fde4f5dc2765a673834467b68df26be119e04eef553859
Contents?: true
Size: 400 Bytes
Versions: 10
Compression:
Stored size: 400 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 & 1 rubygems