effective_regions 1.6.0 → 1.6.1

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: 842e9996a7447adc9e1f92a6c07cd00741689a36
4
- data.tar.gz: f29291a7456d709be4180f9c0dc40826ddf3fbcd
3
+ metadata.gz: 5b6d66be462d576f41140f11e056d18a5c1a007e
4
+ data.tar.gz: 3173674c8852923816b50381eeb39d386ae645c2
5
5
  SHA512:
6
- metadata.gz: fa1d3ff025cbd20ea2b288a1088dfd96e922b1abd365a1b139ac7f868d0f52e79083064aeb27bad7ae89c4de9b860043ab1d39821c76bbfd7214c367e1028ab3
7
- data.tar.gz: d0b9b57580ae5392c38158b5c2750fb083d331de3c970aa421bddaa4267c9eea93d88f018f4e1ba1e63b6eafb8dc3ea06afa765a3465dbfb51b7d433e69ad3a0
6
+ metadata.gz: 158ebb93a1187be93d122d3ebe1dedf66e2cbd2250e3db1eeaf5f693faeb20ba09bda80a13c5cc38594a5d73c2ae3ab7c4abcaa7642f42a875cf099a7ce792e2
7
+ data.tar.gz: 808b42036e976bc95a107dddf9e105b7a3a6c1ae6b342fec2c2147c770758134396291eeb18767f4f40c9a7c256631b20347543325f784b64ed0eb43e06da9cd
@@ -63,7 +63,7 @@ module EffectiveRegionsHelper
63
63
 
64
64
  if effectively_editing?
65
65
  can_edit = (EffectiveRegions.authorized?(controller, :update, obj) rescue false)
66
- opts[:id] = [model_name_from_record_or_class(obj).param_key(), obj.id, title].join('_')
66
+ opts[:id] = [model_name_from_record_or_class(obj).param_key(), obj.to_param, title].join('_')
67
67
  end
68
68
  else # This is a global region
69
69
  regions = (@effective_regions_global ||= Effective::Region.global.to_a)
@@ -1,5 +1,7 @@
1
- require "effective_regions/engine"
2
- require "effective_regions/version"
1
+ require 'migrant'
2
+ require 'virtus'
3
+ require 'effective_ckeditor'
4
+ require 'effective_regions/engine'
3
5
 
4
6
  module EffectiveRegions
5
7
  mattr_accessor :regions_table_name
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.6.0'.freeze
2
+ VERSION = '1.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.1
33
+ version: 1.7.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.5.1
40
+ version: 1.7.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: migrant
43
43
  requirement: !ruby/object:Gem::Requirement