Flowdock
method

define_on

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: AttributeDefinition
define_on(klass) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/acceptance.rb, line 54
          def define_on(klass)
            attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
            attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
            klass.send(:attr_reader, *attr_readers)
            klass.send(:attr_writer, *attr_writers)
          end
Register or log in to add new notes.