Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/html5_validators/active_record/base.rb

Class Method Summary collapse

Class Method Details

.inherited_with_html5_validation(kls) ⇒ Object

:nodoc:



5
6
7
8
9
10
# File 'lib/html5_validators/active_record/base.rb', line 5

def inherited_with_html5_validation(kls) #:nodoc:
  inherited_without_html5_validation kls
  kls.class_eval do
    cattr_accessor :auto_html5_validation, :instance_accessor => false
  end if kls.superclass == ActiveRecord::Base
end