GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: DataMapper port of the Paperclip plugin by Thoughtbot
Homepage: http://invalidlogic.com/dm-paperclip/
Clone URL: git://github.com/krobertson/dm-paperclip.git
Updated to use Integer intead of Fixnum
krobertson (author)
Tue May 13 21:14:12 -0700 2008
commit  249a74e5b8c08c4a84681897f1f5e881edab5b93
tree    1c21abb941bd50c55065ee2e658b9157456dd965
parent  137ad13acec1974b982f16908588e36f1df04ed7
...
21
22
23
24
 
25
26
27
...
21
22
23
 
24
25
26
27
0
@@ -21,7 +21,7 @@ In your model:
0
   class User
0
     include DataMapper::Resource
0
     include Paperclip::Resource
0
- property :id, Fixnum, :serial => true
0
+ property :id, Integer, :serial => true
0
     property :username, String
0
     has_attached_file :avatar,
0
                       :styles => { :medium => "300x300>",
...
125
126
127
128
 
129
130
131
...
125
126
127
 
128
129
130
131
0
@@ -125,7 +125,7 @@ module Paperclip
0
 
0
       property "#{name}_file_name".to_sym, String, property_options
0
       property "#{name}_content_type".to_sym, String, property_options
0
- property "#{name}_file_size".to_sym, Fixnum, property_options
0
+ property "#{name}_file_size".to_sym, Integer, property_options
0
 
0
       after :save, :save_attached_files
0
       before :destroy, :destroy_attached_files
...
65
66
67
68
 
69
70
71
...
65
66
67
 
68
69
70
71
0
@@ -65,7 +65,7 @@ module Paperclip
0
       
0
       property "#{name}_file_name".to_sym, String
0
       property "#{name}_content_type".to_sym, String
0
- property "#{name}_file_size".to_sym, Fixnum
0
+ property "#{name}_file_size".to_sym, Integer
0
 
0
       after :save, :save_attached_files
0
       before :destroy, :destroy_attached_files
...
61
62
63
64
 
65
66
67
...
61
62
63
 
64
65
66
67
0
@@ -61,7 +61,7 @@ def rebuild_model options = {}
0
     include DataMapper::Validate
0
     include Paperclip
0
 # include Paperclip::Validations
0
- property :id, Fixnum, :serial => true
0
+ property :id, Integer, :serial => true
0
     property :other, String
0
     has_attached_file :avatar, options
0
   end

Comments

    No one has commented yet.