acts_as_translatable 0.3.0 → 0.3.1

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.
@@ -0,0 +1,4 @@
1
+ # class to hold record translations
2
+ class RecordTranslation < ActiveRecord::Base
3
+ attr_accessible :content, :translatable_field, :locale
4
+ end
@@ -1,2 +1,4 @@
1
+ require "acts_as_translatable/record_translation"
1
2
  require "acts_as_translatable/class_methods"
3
+
2
4
  ActiveRecord::Base.extend ActsAsTranslatable::ClassMethods
@@ -10,10 +10,6 @@ class ActsAsTranslatableGenerator < Rails::Generators::NamedBase
10
10
 
11
11
  source_root File.expand_path('../templates', __FILE__)
12
12
 
13
- def create_model
14
- template "model.rb", "app/models/record_translation.rb"
15
- end
16
-
17
13
  def create_migrations
18
14
  migration_template "migration.rb", "db/migrate/#{migration_name}.rb"
19
15
  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
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk
@@ -28,10 +28,10 @@ extra_rdoc_files: []
28
28
 
29
29
  files:
30
30
  - lib/acts_as_translatable/class_methods.rb
31
+ - lib/acts_as_translatable/record_translation.rb
31
32
  - lib/acts_as_translatable.rb
32
33
  - lib/generators/acts_as_translatable/acts_as_translatable_generator.rb
33
34
  - lib/generators/acts_as_translatable/templates/migration.rb
34
- - lib/generators/acts_as_translatable/templates/model.rb
35
35
  homepage: http://github.com/lassebunk/acts_as_translatable
36
36
  licenses: []
37
37
 
@@ -1,2 +0,0 @@
1
- class RecordTranslation < ActiveRecord::Base
2
- end