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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3779b1d672e5270bb00c4b21403e93258e778a0e
4
- data.tar.gz: 29ac78500945beb5366b0c9f921d710815acd71a
3
+ metadata.gz: c26c9c6c054a0edc7f68a5a600ec9855aa3b7ec3
4
+ data.tar.gz: cd973de915ff71ff382acbc8786b68a93e7243f9
5
5
  SHA512:
6
- metadata.gz: 32d5c96a2ce40d9701200c544df92e9064a05e5c55837ea8e354e92a06fb6531e7e812e0b6bbf45ce67eaaa591cf5f0282a0d9a0e4b2eed2e313f7aa77ed7c38
7
- data.tar.gz: 9306a5d9ab52782e19565955ced7fdc35707c12a7a6bc17083d41876bc6b072e713a84a39169bc816ef2fc578904aa2ecacf6f891f08dbfcb083f66c2b516a8a
6
+ metadata.gz: 36d38169d7dcae84815f1346ac0c86b7d1fcb192677f75501256b8530973d206260edce06bd445b30779bed27e6a98d57016c62dd6cc8e124964aab8a09fe8ae
7
+ data.tar.gz: 5be0e8665e73d7b8b94f4b3502613e9eccfdd8bcc138ae759051ca7ee0511d2802728a7007de12da997364d8e50f664acec9e2c122b0c300d2fbf59ac9f7eae7
@@ -4,6 +4,6 @@ module SimpleTags
4
4
  has_many :taggings, class_name: 'SimpleTags::Tagging', dependent: :destroy
5
5
  validates :name, uniqueness: true, presence: true
6
6
 
7
- attr_accessible :name
7
+ #attr_accessible :name
8
8
  end
9
9
  end
@@ -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, class_name: 'SimpleTags::Tagging', conditions: ["taggable_type = ?", relation_class_name], foreign_key: 'tag_id'
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
 
@@ -1,3 +1,3 @@
1
1
  module SimpleTags
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0.rc1"
3
3
  end
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.2.2
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-04 00:00:00.000000000 Z
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: 3.2.0
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: 3.2.0
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: '0'
135
+ version: 1.3.1
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 2.0.3