projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Froze rails gems
[depot.git]
/
vendor
/
rails
/
activerecord
/
test
/
models
/
tag.rb
diff --git a/vendor/rails/activerecord/test/models/tag.rb
b/vendor/rails/activerecord/test/models/tag.rb
new file mode 100644
(file)
index 0000000..
a581b38
--- /dev/null
+++ b/
vendor/rails/activerecord/test/models/tag.rb
@@ -0,0
+1,7
@@
+class Tag < ActiveRecord::Base
+ has_many :taggings
+ has_many :taggables, :through => :taggings
+ has_one :tagging
+
+ has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post'
+end
\ No newline at end of file