method

ensure_option_not_given_as_class!

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: AbstractReflection
ensure_option_not_given_as_class!(option_name) private

No documentation

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

Hide source
# File activerecord/lib/active_record/reflection.rb, line 348
        def ensure_option_not_given_as_class!(option_name)
          if options[option_name] && options[option_name].class == Class
            raise ArgumentError, "A class was passed to `:#{option_name}` but we are expecting a string."
          end
        end
Register or log in to add new notes.