method

create

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection
create(macro, name, scope, options, ar) 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/reflection.rb, line 13 def self.create(macro, name, scope, options, ar) case macro when :has_many, :belongs_to, :has_one klass = options[:through] ? ThroughReflection : AssociationReflection when :composed_of klass = AggregateReflection end klass.new(macro, name, scope, options, ar) end
Register or log in to add new notes.