acts_as_translatable 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ class ActiveRecord::Base
9
9
  after_save :save_translations
10
10
  after_destroy :destroy_record_translations
11
11
  has_many :record_translations, :foreign_key => :translatable_id, :conditions => { :translatable_type => '#{name}'}
12
+ default_scope :include => :record_translation
12
13
 
13
14
  def self.translatable_fields
14
15
  [#{field_symbols}]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_translatable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-22 00:00:00 Z
18
+ date: 2012-05-24 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Ruby on Rails plugin for easy translation of database fields.