method

define_accessors

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: Association
define_accessors(model, reflection) public

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.