acts_as_metadata 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Gropher"]
10
10
  s.email = ["grophen@gmail.com"]
11
+ s.license = 'MIT'
11
12
  s.homepage = "https://github.com/Gropher/acts-as-metadata"
12
13
  s.summary = %q{Additional on-demand fields for ActiveRecord models}
13
14
  s.description = %q{This gem allows to add additional database-stored fields to your models}
@@ -86,7 +86,7 @@ module ActsAsMetadata
86
86
  def self.metadata_scheme_data(scope=nil)
87
87
  Rails.cache.fetch("metadata_scheme_#{metadata_scope}#{scope}_data", expires_in: 60.minutes) do
88
88
  uncached do
89
- scope.blank? ? MetadataType.all : MetadataType.where(metadata_scope => scope)
89
+ scope.blank? ? MetadataType.all : MetadataType.where(metadata_scope => scope).all
90
90
  end
91
91
  end
92
92
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetadata
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
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-03 00:00:00.000000000 Z
12
+ date: 2013-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -83,7 +83,8 @@ files:
83
83
  - spec/acts_as_metadata_spec.rb
84
84
  - spec/spec_helper.rb
85
85
  homepage: https://github.com/Gropher/acts-as-metadata
86
- licenses: []
86
+ licenses:
87
+ - MIT
87
88
  post_install_message:
88
89
  rdoc_options: []
89
90
  require_paths: