linguara 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
data/lib/linguara.rb CHANGED
@@ -20,6 +20,7 @@ module Linguara
20
20
  content = value[:content]
21
21
  original_locale = I18n.locale
22
22
  element = class_name.constantize.find(id)
23
+
23
24
  I18n.locale = target_language
24
25
  element.send("#{field_name}=", content)
25
26
  element.save(false)
@@ -12,13 +12,12 @@ module Linguara
12
12
 
13
13
  self.linguara_translation_attribute_names = attr_names.map(&:to_sym)
14
14
 
15
- after_save :send_to_linguara
15
+ after_create :send_to_linguara
16
16
  end
17
17
  end
18
18
 
19
19
  module InstanceMethods
20
-
21
- # protected
20
+ protected
22
21
 
23
22
  #TODO describe it, spec and move somewhere else
24
23
  # http://www.keyongtech.com/5211204-nested-http-params-on-ruby
data/linguara.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{linguara}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aleksander Dabrowski"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linguara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aleksander Dabrowski