Jack Danger Canty (author)
16 days ago
| name | age | message | |
|---|---|---|---|
| |
README | Fri Aug 03 17:11:14 -0700 2007 | [studioda] |
| |
Rakefile | Fri Aug 03 16:38:33 -0700 2007 | [studioda] |
| |
init.rb | Fri Aug 03 16:38:33 -0700 2007 | [studioda] |
| |
install.rb | Fri Aug 03 16:47:42 -0700 2007 | [studioda] |
| |
lib/ | Tue Apr 29 09:30:24 -0700 2008 | [Jack Danger Canty] |
| |
rails/ | Thu Mar 27 13:09:59 -0700 2008 | [Jack Danger Canty] |
| |
tasks/ | Fri Aug 03 16:38:33 -0700 2007 | [studioda] |
| |
test/ | Fri Aug 03 16:38:33 -0700 2007 | [studioda] |
| |
uninstall.rb | Fri Aug 03 16:38:33 -0700 2007 | [studioda] |
README
ImmutableAttributes =================== When you want to prevent certain attributes from being changed once set you can declare them as immutable: class MyModel < ActiveRecord::Base attr_immutable :permalink, :param_identifier end When MyModel.find(:first).permalink = 'anything' is called it will raise an ImmutableAttributeError MyModel.new.permalink = 'works!' will properly set the value because the record is unsaved. Created by Jack Danger Canty @ http://6brand.com Released under the same licence as Rails (MIT)




