method

create

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::HasManyThroughAssociation
create(attrs = 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/has_many_through_association.rb, line 18
      def create(attrs = nil)
        @reflection.klass.transaction do
          self << (object = attrs ? @reflection.klass.send(:with_scope, :create => attrs) { @reflection.klass.create } : @reflection.klass.create)
          object
        end
      end
Register or log in to add new notes.