Skip to content

rodovich/inactive-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inactive 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)

About

Reimplementation of a tiny subset of Active Record

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages