translated_attributes 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -80,6 +80,7 @@ module TranslatedAttributes
80
80
  end
81
81
 
82
82
  def translated_attributes
83
+ return @translated_attributes if @translated_attributes
83
84
  merge_db_translations_with_instance_variable
84
85
  @translated_attributes ||= {}.with_indifferent_access
85
86
  end
@@ -149,4 +150,4 @@ module TranslatedAttributes
149
150
  end
150
151
  end
151
152
 
152
- ActiveRecord::Base.send :extend, TranslatedAttributes::ClassMethods
153
+ ActiveRecord::Base.send :extend, TranslatedAttributes::ClassMethods
@@ -1,7 +1,7 @@
1
1
  # ---- requirements
2
2
  require 'rubygems'
3
3
  require 'spec'
4
- require 'activerecord'
4
+ require 'active_record'
5
5
 
6
6
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
7
7
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{translated_attributes}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2009-11-22}
12
+ s.date = %q{2009-12-13}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-22 00:00:00 +01:00
12
+ date: 2009-12-13 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency