acts_as_translatable 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # PLEASE HELP: I need help refactoring and improving these methods so that the methods are defined in a more decent way.
2
+
1
3
  class ActiveRecord::Base
2
4
  def self.acts_as_translatable_on(*fields)
3
5
  field_symbols = fields.map { |f| ":#{f}" }.join(", ")
@@ -41,8 +41,5 @@ 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
47
44
  end
48
45
  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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
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-19 00:00:00 Z
18
+ date: 2012-05-20 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Ruby on Rails plugin for easy translation of database fields.