active_scaffold_config_list 3.2.2 → 3.2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module ActiveScaffold::Actions
32
32
  end
33
33
 
34
34
  def delete_config_list_params
35
- if active_scaffold_config.config_list.save_to_user && current_user
35
+ if active_scaffold_config.config_list.save_to_user && current_user = send(ActiveRecordPermissions.current_user_method)
36
36
  current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key).destroy
37
37
  else
38
38
  active_scaffold_session_storage[:config_list] = nil
@@ -41,7 +41,7 @@ module ActiveScaffold::Actions
41
41
  end
42
42
 
43
43
  def save_config_list_params(config_list)
44
- if active_scaffold_config.config_list.save_to_user && current_user
44
+ if active_scaffold_config.config_list.save_to_user && current_user = send(ActiveRecordPermissions.current_user_method)
45
45
  current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key).update_attribute :config_list, config_list.join(',')
46
46
  else
47
47
  active_scaffold_session_storage[:config_list] = config_list.map(&:to_sym)
@@ -50,7 +50,7 @@ module ActiveScaffold::Actions
50
50
  end
51
51
 
52
52
  def config_list_params
53
- @config_list_params = if active_scaffold_config.config_list.save_to_user && current_user
53
+ @config_list_params = if active_scaffold_config.config_list.save_to_user && current_user = send(ActiveRecordPermissions.current_user_method)
54
54
  params = current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key).config_list
55
55
  params.split(',').map(&:to_sym) if params
56
56
  else
@@ -2,7 +2,7 @@ module ActiveScaffoldConfigList
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 2
5
+ PATCH = '2.1'
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_config_list
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 101
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 2
10
- version: 3.2.2
10
+ - 1
11
+ version: 3.2.2.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Sergio Cambra
@@ -24,7 +25,7 @@ dependencies:
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
27
- hash: -614877838
28
+ hash: -3949355062
28
29
  segments:
29
30
  - 3
30
31
  - 3