easy_globalize3_accessors 1.1.1 → 1.1.3
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.
- data/README.rdoc +4 -4
- data/easy_globalize3_accessors.gemspec +1 -1
- data/lib/easy_globalize3_accessors/version.rb +2 -2
- metadata +5 -4
data/README.rdoc
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Generator of easy accessor methods for models using Globalize3.
|
|
6
6
|
|
|
7
|
-
Use globalize_accessors with list of translated fields you want
|
|
7
|
+
Use globalize_accessors with list of translated fields you want easily access to and extra :locales array listing locales for which you want the accessors to be generated.
|
|
8
8
|
|
|
9
9
|
This way a single form can be used to edit given model fields with all anticipated translations.
|
|
10
10
|
|
|
@@ -32,7 +32,7 @@ which means that skipping all options will generate you accessor method for all
|
|
|
32
32
|
|
|
33
33
|
== Always define accessors
|
|
34
34
|
|
|
35
|
-
If you wish to always define accessors and don't want to
|
|
35
|
+
If you wish to always define accessors and don't want to call globalize_accessors method in every class, you can extend ActiveRecord::Base with such module:
|
|
36
36
|
|
|
37
37
|
module TranslatesWithAccessors
|
|
38
38
|
|
|
@@ -46,6 +46,6 @@ If you wish to always define accessors and don't want to write globalize_accesso
|
|
|
46
46
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
==
|
|
49
|
+
== Licence
|
|
50
50
|
|
|
51
|
-
Copyright (c) 2009-2010 Tomek "Tomash" Stachewicz (http://tomash.wrug.eu), released under the MIT license
|
|
51
|
+
Copyright (c) 2009-2010 Tomek "Tomash" Stachewicz (http://tomash.wrug.eu), Robert Pankowecki (http://robert.pankowecki.pl) released under the MIT license
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
|
15
15
|
s.rubyforge_project = "easy_globalize3_accessors"
|
|
16
16
|
|
|
17
|
-
s.add_dependency "globalize3", "~> 0.1.0"
|
|
17
|
+
s.add_dependency "globalize3", "~> 0.1.0.beta"
|
|
18
18
|
|
|
19
19
|
s.add_development_dependency "bundler", "~> 1.0.7"
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module EasyGlobalize3Accessors
|
|
2
|
-
VERSION = '1.1.
|
|
3
|
-
end
|
|
2
|
+
VERSION = '1.1.3'
|
|
3
|
+
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 1.1.
|
|
8
|
+
- 3
|
|
9
|
+
version: 1.1.3
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Tomasz Stachewicz
|
|
@@ -17,7 +17,7 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2011-02-
|
|
20
|
+
date: 2011-02-28 00:00:00 +01:00
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|
|
@@ -32,7 +32,8 @@ dependencies:
|
|
|
32
32
|
- 0
|
|
33
33
|
- 1
|
|
34
34
|
- 0
|
|
35
|
-
|
|
35
|
+
- beta
|
|
36
|
+
version: 0.1.0.beta
|
|
36
37
|
type: :runtime
|
|
37
38
|
version_requirements: *id001
|
|
38
39
|
- !ruby/object:Gem::Dependency
|