Flowdock
method

new

Importance_0

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

These similar methods exist in v6.1.7.7:

new(owner = nil, reflection = nil) public

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/associations.rb, line 152
    def initialize(owner = nil, reflection = nil)
      if owner && reflection
        super("Cannot dissociate new records through '#{owner.class.name}##{reflection.name}' on '#{reflection.source_reflection.class_name rescue nil}##{reflection.source_reflection.name rescue nil}'. Both records must have an id in order to delete the has_many :through record associating them.")
      else
        super("Cannot dissociate new records.")
      end
    end
Register or log in to add new notes.