public
Description: Rails Plugin - specify attributes within a model that can be set but not modified
Homepage: http://6brand.com
Clone URL: git://github.com/JackDanger/immutable_attributes.git
legal stuff

git-svn-id: 
http://svn.6brand.com/projects/plugins/immutable_attributes@330 
7491b73d-821b-0410-9297-ad1f6b5b4194
studioda (author)
Fri Aug 03 17:11:14 -0700 2007
commit  75c1e4a3bd82f5a7286b9e5fdfb6e5f4a2829834
tree    b8adce95b1ae4baab7f435e4c5aff1c48c1d0ea0
parent  d0c7823486404dfc7af57a177bda9d6bb6161b97
0
...
 
 
1
2
3
...
8
9
10
11
12
 
 
 
 
 
...
1
2
3
4
5
...
10
11
12
 
13
14
15
16
17
18
0
@@ -1,3 +1,5 @@
0
+
0
+
0
 ImmutableAttributes
0
 ===================
0
 
0
@@ -8,4 +10,8 @@ class MyModel < ActiveRecord::Base
0
 end
0
 
0
 When MyModel.find(:first).permalink = 'anything' is called it will raise an ImmutableAttributeError
0
-MyModel.new.permalink = 'works!' will properly set the value because the record is unsaved.
0
\ No newline at end of file
0
+MyModel.new.permalink = 'works!' will properly set the value because the record is unsaved.
0
+
0
+Created by Jack Danger Canty @ http://6brand.com
0
+Released under the same licence as Rails (MIT)
0
+

Comments

    No one has commented yet.