public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
Updated models to autoincrement their id's.
fujin (author)
Thu Jul 03 20:55:48 -0700 2008
commit  b120ddc5067ba8ee66e870033c2b6d816d4b6b95
tree    49183c2a21fec32c69928fdfab378e2c58dc82de
parent  799cff828496e4219ba86b13a4c4f3f437dd8df5
...
1
2
3
4
 
5
6
7
...
42
43
44
45
46
 
...
1
2
3
 
4
5
6
7
...
42
43
44
 
45
46
0
@@ -1,7 +1,7 @@
0
 class Comment
0
   include DataMapper::Resource
0
   
0
- property :id, Integer, :key => true
0
+ property :id, Integer, :serial => true
0
   property :article_id, Integer
0
   property :name, String
0
   property :website, String
0
@@ -42,4 +42,4 @@ class Comment
0
     a = Activity.create(:message => "Comment created by \"#{self.name}\" on #{Article[self.article_id].title}")
0
   end
0
   
0
-end
0
\ No newline at end of file
0
+end
...
1
2
3
4
 
5
6
7
...
15
16
17
18
19
 
...
1
2
3
 
4
5
6
7
...
15
16
17
 
18
19
0
@@ -1,7 +1,7 @@
0
 class CommentSetting
0
   include DataMapper::Resource
0
   
0
- property :id, Integer, :key => true
0
+ property :id, Integer, :serial => true
0
   property :moderation, Boolean, :nullable => false, :default => false
0
   property :negative_captcha, Boolean, :nullable => false, :default => false
0
   property :email_notification, Boolean, :nullable => false, :default => false
0
@@ -15,4 +15,4 @@ class CommentSetting
0
     comment_settings = CommentSetting.create(:moderation => false, :negative_captcha => false, :email_notification => false) if comment_settings.nil?
0
     comment_settings
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.