active_scaffold_config_list_vho 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{active_scaffold_config_list_vho}
|
8
|
+
s.version = "3.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Volker Hochstein"]
|
12
|
+
s.date = %q{2011-01-27}
|
13
|
+
s.description = %q{User may reorder and hide/show list columns}
|
14
|
+
s.email = %q{activescaffold@googlegroups.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"LICENSE.txt",
|
22
|
+
"README",
|
23
|
+
"Rakefile",
|
24
|
+
"active_scaffold_config_list_vho.gemspec",
|
25
|
+
"frontends/default/stylesheets/cf_as-stylesheet-ie.css",
|
26
|
+
"frontends/default/stylesheets/cf_as-stylesheet.css",
|
27
|
+
"frontends/default/views/_show_config_list_form.html.erb",
|
28
|
+
"frontends/default/views/_show_config_list_form_body.html.erb",
|
29
|
+
"frontends/default/views/show_config_list_form.html.erb",
|
30
|
+
"init.rb",
|
31
|
+
"lib/active_scaffold/actions/config_list.rb",
|
32
|
+
"lib/active_scaffold/config/config_list.rb",
|
33
|
+
"lib/active_scaffold/helpers/config_list_helpers.rb",
|
34
|
+
"lib/active_scaffold_config_list.rb",
|
35
|
+
"lib/active_scaffold_config_list/config/core.rb",
|
36
|
+
"lib/active_scaffold_config_list/version.rb",
|
37
|
+
"lib/active_scaffold_config_list_vho.rb",
|
38
|
+
"uninstall.rb"
|
39
|
+
]
|
40
|
+
s.homepage = %q{http://github.com/vhochstein/active_scaffold_config_list}
|
41
|
+
s.licenses = ["MIT"]
|
42
|
+
s.require_paths = ["lib"]
|
43
|
+
s.rubygems_version = %q{1.3.7}
|
44
|
+
s.summary = %q{User specific column configuration for ActiveScaffold}
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
54
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
55
|
+
s.add_runtime_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
58
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
59
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
60
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
61
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
67
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
68
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
@@ -55,5 +55,11 @@ module ActiveScaffold::Actions
|
|
55
55
|
columns
|
56
56
|
end
|
57
57
|
end
|
58
|
+
|
59
|
+
# The default security delegates to ActiveRecordPermissions.
|
60
|
+
# You may override the method to customize.
|
61
|
+
def config_list_authorized?
|
62
|
+
authorized_for?(:action => :read)
|
63
|
+
end
|
58
64
|
end
|
59
65
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ActiveScaffold::Config
|
2
2
|
class ConfigList < Form
|
3
|
-
self.crud_type = :
|
3
|
+
self.crud_type = :read
|
4
4
|
def initialize(*args)
|
5
5
|
super
|
6
6
|
end
|
@@ -14,7 +14,7 @@ module ActiveScaffold::Config
|
|
14
14
|
def self.link=(val)
|
15
15
|
@@link = val
|
16
16
|
end
|
17
|
-
@@link = ActiveScaffold::DataStructures::ActionLink.new('show_config_list', :label => :config_list, :type => :collection, :security_method => :
|
17
|
+
@@link = ActiveScaffold::DataStructures::ActionLink.new('show_config_list', :label => :config_list, :type => :collection, :security_method => :config_list_authorized?)
|
18
18
|
|
19
19
|
# configures where the plugin itself is located. there is no instance version of this.
|
20
20
|
cattr_accessor :plugin_directory
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_config_list_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Volker Hochstein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-27 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- LICENSE.txt
|
108
108
|
- README
|
109
109
|
- Rakefile
|
110
|
+
- active_scaffold_config_list_vho.gemspec
|
110
111
|
- frontends/default/stylesheets/cf_as-stylesheet-ie.css
|
111
112
|
- frontends/default/stylesheets/cf_as-stylesheet.css
|
112
113
|
- frontends/default/views/_show_config_list_form.html.erb
|