Rails plugin to allow access to belongs_to association attributes through methods on the base class.
License
trotter/belongs_to_demeter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
BelongsToDemeter ================ BelongsToDemeter is a Rails plugin that lets you access attributes of a belongs_to association through methods on the base class. It's poor code, but a fun idea. Example ======= # The next line will do a User.find_by_login('bob') and assign it to # @character.user @character.user_login = "bob" # You can then fetch the user's name by doing @character.user_name = "Bob Jones" Copyright (c) 2008 [Trotter Cashion], released under the MIT license
About
Rails plugin to allow access to belongs_to association attributes through methods on the base class.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published