simple_tags 0.2.2 → 0.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/simple_tags/tag.rb +1 -1
- data/lib/simple_tags/taggable.rb +1 -1
- data/lib/simple_tags/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c26c9c6c054a0edc7f68a5a600ec9855aa3b7ec3
|
4
|
+
data.tar.gz: cd973de915ff71ff382acbc8786b68a93e7243f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36d38169d7dcae84815f1346ac0c86b7d1fcb192677f75501256b8530973d206260edce06bd445b30779bed27e6a98d57016c62dd6cc8e124964aab8a09fe8ae
|
7
|
+
data.tar.gz: 5be0e8665e73d7b8b94f4b3502613e9eccfdd8bcc138ae759051ca7ee0511d2802728a7007de12da997364d8e50f664acec9e2c122b0c300d2fbf59ac9f7eae7
|
data/lib/simple_tags/taggable.rb
CHANGED
@@ -9,7 +9,7 @@ module SimpleTags
|
|
9
9
|
# Adds a relation in the Tag model for listing this type of taggables
|
10
10
|
#
|
11
11
|
SimpleTags::Tag.class_eval do
|
12
|
-
has_many "#{relation_name}_taggings".to_sym,
|
12
|
+
has_many "#{relation_name}_taggings".to_sym, -> { where('taggable_type = ?', relation_class_name) }, class_name: 'SimpleTags::Tagging', foreign_key: 'tag_id'
|
13
13
|
has_many relation_name.pluralize.to_sym, class_name: relation_class_name, through: "#{relation_name}_taggings".to_sym, source: "#{relation_name}_filter".to_sym
|
14
14
|
end
|
15
15
|
|
data/lib/simple_tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Scolari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- - '
|
133
|
+
- - '>'
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version:
|
135
|
+
version: 1.3.1
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
138
|
rubygems_version: 2.0.3
|