unscoped_associations 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -39,7 +39,7 @@ end
39
39
  @user.comments # => return public comments
40
40
  @user.all_comments # => return all comments skipping default_scope
41
41
  @user.last_comment # => return last comment skipping default_scope
42
- @topic.user # => return user w/o taking account 'active' flag
42
+ @comment.user # => return user w/o taking account 'active' flag
43
43
 
44
44
  ```
45
45
 
@@ -60,4 +60,4 @@ Anyway, you can use `unscoped` option, if you prefer.
60
60
  Ideas, fixes, improvements or any comment are welcome!
61
61
 
62
62
  ## License
63
- Copyright (c) 2013 Marc Anguera. Unscoped Associations is released under the [MIT](http://opensource.org/licenses/MIT) License.
63
+ Copyright (c) 2013 Marc Anguera. Unscoped Associations is released under the [MIT](http://opensource.org/licenses/MIT) License.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -43,9 +43,9 @@ module UnscopedAssociations
43
43
  end
44
44
 
45
45
  def add_unscoped_association(association_name)
46
- define_method(association_name) do
46
+ define_method(association_name) do |*args|
47
47
  self.class.reflect_on_association(association_name).klass.unscoped do
48
- super(association_name)
48
+ super(*args)
49
49
  end
50
50
  end
51
51
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "unscoped_associations"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["markets"]
12
- s.date = "2013-09-11"
12
+ s.date = "2013-10-02"
13
13
  s.description = "Skip default_scope in your associations"
14
14
  s.email = "srmarc.ai@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unscoped_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-11 00:00:00.000000000 Z
12
+ date: 2013-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -618493999
106
+ hash: 3195594206111851995
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements: