Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit e741bea

Browse files
committed
Merge branch 'release/0.6.3' into develop
2 parents 630811c + b04af85 commit e741bea

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ Makes it easy to translate your resource fields.
44
## Installation
55

66
```ruby
7-
gem "activeadmin-globalize", github: 'stefanoverna/activeadmin-globalize',
8-
branch: 'master'
7+
gem 'activeadmin-globalize', '~> 0.6.3'
98
```
10-
We still need to use GitHub because ActiveAdmin is still in active development
11-
and there's no released gem compatible with Rails 4.
9+
10+
This version targets Rails 3.2.x only and ActiveAdmin ~> 0.6.3.
1211

1312
## Your model
1413

@@ -20,13 +19,11 @@ end
2019
## Editor configuration
2120

2221
```ruby
23-
# if you are using Rails 4 or Strong Parameters:
24-
permit_params translations_attributes: [:locale, :title, :content]
25-
26-
2722
index do
28-
# ...
23+
# textual translation status
2924
translation_status
25+
# or with flag icons
26+
translation_status_flags
3027
# ...
3128
default_actions
3229
end
@@ -54,3 +51,7 @@ to symbol (in application.rb)
5451

5552
config.i18n.available_locales = [:en, :it, :de, :es, :"pt-BR"]
5653

54+
## Credits
55+
56+
This work is based on original idea by [@stefanoverna](https://github.com/stefanoverna/activeadmin-globalize),
57+
I needed it for AA 0.6.x so I forked the original project.

activeadmin-globalize.gemspec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ require 'active_admin/globalize/version'
77
Gem::Specification.new do |s|
88
s.name = 'activeadmin-globalize'
99
s.version = ActiveAdmin::Globalize::VERSION
10-
s.authors = ['Stefano Verna']
11-
s.email = ['stefano.verna@gmail.com']
12-
s.homepage = 'http://github.com/stefanoverna/activeadmin-globalize'
10+
s.authors = ['Stefano Verna', 'Fabio Napoleoni']
11+
s.email = ['stefano.verna@gmail.com', 'f.napoleoni@gmail.com']
12+
s.homepage = 'http://github.com/fabn/activeadmin-globalize'
1313
s.summary = 'Handles globalize translations'
14-
s.description = 'Handles globalize translations'
14+
s.description = 'Handles globalize translations in ActiveAdmin 0.6.3 and Rails 3.2.x'
1515

1616
s.files = Dir['{app,config,db,lib}/**/*'] + %w(MIT-LICENSE README.md)
1717

18-
s.add_dependency 'activeadmin', '>= 0.6.3'
19-
s.add_dependency 'globalize', '>= 3.0.4'
18+
s.add_dependency 'activeadmin', '~> 0.6.3'
19+
s.add_dependency 'globalize', '~> 3.0.4'
2020

2121
# development dependencies
22-
s.add_development_dependency 'bundler', '~> 1.6.1'
22+
s.add_development_dependency 'bundler', '>= 1.6.1'
2323
s.add_development_dependency 'rake'
2424
# Other development dependencies moved into Gemfile
2525

0 commit comments

Comments
 (0)