irb -r ./inactive_record.rb
class Project < InactiveRecord::Base
belongs_to :user
end
class User < InactiveRecord::Base
has_many :projects
end
User.where(admin: true).first.projects.order(:name).map(&:name)
Reimplementation of a tiny subset of Active Record
irb -r ./inactive_record.rb
class Project < InactiveRecord::Base
belongs_to :user
end
class User < InactiveRecord::Base
has_many :projects
end
User.where(admin: true).first.projects.order(:name).map(&:name)
Reimplementation of a tiny subset of Active Record