method

define_accessors

Importance_1
v6.0.0 - Show latest stable - 0 notes - Class: Association
define_accessors(model, reflection) private

Defines the setter and getter methods for the association class Post < ActiveRecord::Base

has_many :comments

end

Post.first.comments and Post.first.comments= methods are defined by this method…

Show source
Register or log in to add new notes.