active_scaffold_config_list 3.2.4 → 3.2.5

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 = send(ActiveRecordPermissions.current_user_method)
35
+ if active_scaffold_config.config_list.save_to_user && current_user = send(active_scaffold_config.class.security.current_user_method)
36
36
  current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key, controller_name).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 = send(ActiveRecordPermissions.current_user_method)
44
+ if active_scaffold_config.config_list.save_to_user && current_user = send(active_scaffold_config.class.security.current_user_method)
45
45
  current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key, controller_name).update_attribute :config_list, config_list.join(',')
46
46
  else
47
47
  active_scaffold_session_storage[:config_list] = config_list.map(&:to_sym)
@@ -62,7 +62,7 @@ module ActiveScaffold::Actions
62
62
  def config_list_record
63
63
  return @config_list_record if defined? @config_list_record
64
64
  @config_list_record = if active_scaffold_config.config_list.save_to_user
65
- current_user = send(ActiveRecordPermissions.current_user_method)
65
+ current_user = send(active_scaffold_config.class.security.current_user_method)
66
66
  if current_user
67
67
  current_user.send(active_scaffold_config.config_list.save_to_user, active_scaffold_session_storage_key, controller_name)
68
68
  end
@@ -2,7 +2,7 @@ module ActiveScaffoldConfigList
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_config_list
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 4
10
- version: 3.2.4
9
+ - 5
10
+ version: 3.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-10-04 00:00:00 Z
18
+ date: 2013-10-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime