rails_admin_mongoid_localize_filed 0.1.1 → 0.1.2b

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae6d80a63c5671fc4d20d682ffae9b0bc78f50ea
4
- data.tar.gz: f9a937de1a520cba5781607a898804645e9e3b76
3
+ metadata.gz: 8e0e527ba86d4145addeff94301f1c9ab8514a1f
4
+ data.tar.gz: b5a127367307a4c61c7c5eb90102e2fabc846f12
5
5
  SHA512:
6
- metadata.gz: 4b150a4725a198bedc8e9ba30a70fa0d27f34b49c29f30a9865ea51866bd54e839d6a37469e158db2dd0023eef7141e185d6fdbdb81c00ddd9c35fccae3250b0
7
- data.tar.gz: 9a8c354530755379987c9bb54213d8eb0c479efdbd4c649ff5ff22c21358741835a3621a2a06ec7a3f0d57c17a726cf7c93dad1478d4bc16065c864a8d0351df
6
+ metadata.gz: 56585e01ab56d1e0062e01326bec05df404dea31d77fc2ff5ed850f48a6bfece4c12ee455d0b109ebe2a3887008ac4e251865d9edf3231fac74e14bd076db7a6
7
+ data.tar.gz: 4fe55860aed3860744ee9fb071fed490bfeb3d06df5130568e07e24ee5cdc896e2a524432451c11e04020abc87f5458be8193847b845b121081c87062a56924f
@@ -14,11 +14,11 @@ module RegisterInstances
14
14
  included do
15
15
 
16
16
  register_instance_option :translations_field do
17
- name.to_s + '_translations'
17
+ (name.to_s + '_translations').to_sym
18
18
  end
19
19
 
20
20
  register_instance_option :localized? do
21
- bindings[:object].respond_to?(translations_field)
21
+ @abstract_model.model_name.constantize.public_instance_methods.include?(translations_field)
22
22
  end
23
23
 
24
24
  register_instance_option :tabbed do
@@ -1,3 +1,3 @@
1
1
  module RailsAdminMongoidLocalizeField
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2b"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_mongoid_localize_filed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2b
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Popadiuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-30 00:00:00.000000000 Z
12
+ date: 2014-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -93,7 +93,10 @@ homepage: https://github.com/sudosu/rails_admin_mongoid_localize_filed
93
93
  licenses:
94
94
  - MIT
95
95
  metadata: {}
96
- post_install_message:
96
+ post_install_message: |2
97
+ ! The 'rails_admin_mongoid_localize_filed' gem has been renamed and has been replaced by 'rails_admin_mongoid_localize_filed'.
98
+ ! This because of typo in last word of the gem's name. Sorry for that.
99
+ ! See: https://rubygems.org/gems/rails_admin_mongoid_localize_field
97
100
  rdoc_options: []
98
101
  require_paths:
99
102
  - lib
@@ -104,9 +107,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
107
  version: '0'
105
108
  required_rubygems_version: !ruby/object:Gem::Requirement
106
109
  requirements:
107
- - - '>='
110
+ - - '>'
108
111
  - !ruby/object:Gem::Version
109
- version: '0'
112
+ version: 1.3.1
110
113
  requirements: []
111
114
  rubyforge_project:
112
115
  rubygems_version: 2.1.11