lib/mongoid/association/referenced/has_and_belongs_to_many.rb
# Get the foreign key field on the inverse.
#
# @return [ String ] The foreign key field for saving the association reference
#  on the inverse side.
Get the foreign key field on the inverse.
Get the foreign key field on the inverse .
def inverse_foreign_key
          if @options.key?(:inverse_foreign_key)
            @options[:inverse_foreign_key]
          elsif @options.key?(:inverse_of)
            inverse_of ? "#{inverse_of.to_s.singularize}#{FOREIGN_KEY_SUFFIX}" : nil
          else
            "#{inverse_class_name.demodulize.underscore}#{FOREIGN_KEY_SUFFIX}"
          end
        end
def inverse_foreign_key if @options . key? ( :inverse_foreign_key ) @options [ :inverse_foreign_key ] elsif @options . key? ( :inverse_of ) inverse_of ? "#{inverse_of.to_s.singularize}#{FOREIGN_KEY_SUFFIX}" : nil else "#{inverse_class_name.demodulize.underscore}#{FOREIGN_KEY_SUFFIX}" end end
Get the foreign key field on the inverse.
Get the foreign key field on the inverse .
The foreign key field for saving the association reference on the inverse side.
The foreign key field for saving the association reference on the inverse side .
 String 