instance method default_options

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

default_options()

Return user options with default options.

Source
# File activerecord/lib/active_record/validations.rb, line 121
      def default_options
        options.reverse_merge :scope => [:activerecord, :errors],
                              :model => @base.class.human_name,
                              :attribute => @base.class.human_attribute_name(attribute.to_s),
                              :value => value
      end

Defined in activerecord/lib/active_record/validations.rb line 121 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Error

Type at least 2 characters to search.

↑↓ navigate · open · esc close