APIdock / Ruby on Rails
/
Browse About
method

push

rails latest stable - Class: ActiveRecord::Associations::AssociationCollection

Method deprecated or moved

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

push(*records)
public

Alias for ActiveRecord::Associations::AssociationCollection#<<

Related methods

  • Instance methods
  • <<
  • any?
  • build
  • clear
  • concat
  • count
  • create
  • create!
  • delete
  • delete_all
  • destroy
  • destroy_all
  • empty?
  • find
  • first
  • include?
  • last
  • length
  • many?
  • proxy_respond_to?
  • push
  • replace
  • reset
  • scoped
  • select
  • size
  • sum
  • to_a
  • to_ary
  • transaction
  • uniq
  • Class methods
  • new
  • Protected methods
  • protectedadd_record_to_target_with_callbacks
  • protectedconstruct_counter_sql
  • protectedconstruct_find_options!
  • protectedconstruct_scope
  • protectedfind_target
  • protectedload_target
  • protectedmethod_missing
  • protectedreset_named_scopes_cache!
  • protectedreset_target!
  • Private methods
  • privatebuild_record
  • privatecallback
  • privatecallbacks_for
  • privatecreate_record
  • privateensure_owner_is_not_new
  • privatefetch_first_or_last_using_find?
  • privateinclude_in_memory?
  • privateremove_records
APIdock API Documentation Browser

© 2026 APIdock