acts_as_translatable 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  class ActiveRecord::Base
2
2
  def self.acts_as_translatable_on(*fields)
3
3
  eval "class ::#{name}
4
+ after_initialize :translations
4
5
  after_save :save_translations
5
6
  after_destroy :destroy_record_translations
6
7
 
@@ -41,5 +41,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration
41
41
  record.update_attribute :<%= column %>, content
42
42
  end
43
43
  <% end %>end
44
+
45
+ # drop translations table
46
+ drop_table :record_translations
44
47
  end
45
48
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
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-16 00:00:00 Z
18
+ date: 2012-05-17 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Ruby on Rails plugin for easy translation of database fields.