Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 14, 2010
@wisesascha wisesascha 80781d6
@wisesascha wisesascha c5b5402
Commits on Apr 15, 2010
@wisesascha wisesascha c475617
Showing with 6 additions and 6 deletions.
  1. +2 −2 README.rdoc
  2. +4 −4 lib/joint.rb
View
4 README.rdoc 100755 → 100644
@@ -7,7 +7,7 @@ MongoMapper and GridFS joined in file upload love.
Declare the plugin and use the attachment method to make attachments.
class Foo
- include MongoMapper::Document
+ include Mongoid::Document
plugin Joint
attachment :image
@@ -34,4 +34,4 @@ If you call a method other than those in the proxy it calls it on the GridIO ins
== Copyright
-Copyright (c) 2010 John Nunemaker. See LICENSE for details.
+Copyright (c) 2010 Sascha Wise. See LICENSE for details.
View
8 lib/joint.rb 100755 → 100644
@@ -18,10 +18,10 @@ def attachment(name)
after_save :destroy_nil_attachments
before_destroy :destroy_all_attachments
- key "#{name}_id".to_sym, ObjectId
- key "#{name}_name".to_sym, String
- key "#{name}_size".to_sym, Integer
- key "#{name}_type".to_sym, String
+ field "#{name}_id".to_sym, :type => ObjectId
+ field "#{name}_name".to_sym, :type => String
+ field "#{name}_size".to_sym, :type => Integer
+ field "#{name}_type".to_sym, :type => String
class_eval <<-EOC
def #{name}

No commit comments for this range

Something went wrong with that request. Please try again.