active_scaffold_export 0.9.5 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +7 -1
- data/LICENSE.txt +20 -0
- data/Rakefile +57 -0
- data/active_scaffold_export.gemspec +50 -11
- data/frontends/default/views/_show_export.html.erb +2 -2
- data/init.rb +6 -0
- data/lib/active_scaffold/helpers/export_helpers.rb +16 -0
- data/lib/active_scaffold_export/config/core.rb +8 -7
- data/lib/active_scaffold_export/version.rb +9 -0
- data/lib/active_scaffold_export.rb +20 -14
- metadata +87 -22
- data/lib/active_scaffold/helpers/view_helpers_override.rb +0 -17
data/.document
ADDED
data/Gemfile
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 vhochstein
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
require './lib/active_scaffold_export/version.rb'
|
14
|
+
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "active_scaffold_export"
|
18
|
+
gem.version = ActiveScaffoldExport::Version::STRING
|
19
|
+
gem.homepage = "http://github.com/mojotech/active_scaffold_export"
|
20
|
+
gem.license = "MIT"
|
21
|
+
gem.summary = %Q{Exporting Records with ActiveScaffold}
|
22
|
+
gem.description = %Q{This Active Scaffold plugin provides a configurable CSV 'Export' action for Active Scaffold controllers}
|
23
|
+
gem.email = "activescaffold@googlegroups.com"
|
24
|
+
gem.authors = ["Volker Hochstein", "Mojo Tech, LLC", "see commits"]
|
25
|
+
gem.add_runtime_dependency 'active_scaffold', '>= 3.0.11'
|
26
|
+
gem.add_runtime_dependency "fastercsv"
|
27
|
+
|
28
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
29
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
30
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
31
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
32
|
+
end
|
33
|
+
Jeweler::RubygemsDotOrgTasks.new
|
34
|
+
|
35
|
+
require 'rake/testtask'
|
36
|
+
Rake::TestTask.new(:test) do |test|
|
37
|
+
test.libs << 'lib' << 'test'
|
38
|
+
test.pattern = 'test/**/test_*.rb'
|
39
|
+
test.verbose = true
|
40
|
+
end
|
41
|
+
|
42
|
+
require 'rcov/rcovtask'
|
43
|
+
Rcov::RcovTask.new do |test|
|
44
|
+
test.libs << 'test'
|
45
|
+
test.pattern = 'test/**/test_*.rb'
|
46
|
+
test.verbose = true
|
47
|
+
end
|
48
|
+
|
49
|
+
task :default => :test
|
50
|
+
|
51
|
+
require 'rake/rdoctask'
|
52
|
+
Rake::RDocTask.new do |rdoc|
|
53
|
+
rdoc.rdoc_dir = 'rdoc'
|
54
|
+
rdoc.title = "active_scaffold_export #{ActiveScaffoldExport::Version::STRING}"
|
55
|
+
rdoc.rdoc_files.include('README*')
|
56
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
57
|
+
end
|
@@ -1,37 +1,76 @@
|
|
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
|
+
|
1
6
|
Gem::Specification.new do |s|
|
2
7
|
s.name = %q{active_scaffold_export}
|
3
|
-
s.version = "0.
|
8
|
+
s.version = "3.0.1"
|
4
9
|
|
5
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
-
s.authors = ["Mojo Tech, LLC", "see commits"]
|
11
|
+
s.authors = ["Volker Hochstein", "Mojo Tech, LLC", "see commits"]
|
12
|
+
s.date = %q{2011-02-01}
|
7
13
|
s.description = %q{This Active Scaffold plugin provides a configurable CSV 'Export' action for Active Scaffold controllers}
|
8
|
-
s.email = %q{
|
14
|
+
s.email = %q{activescaffold@googlegroups.com}
|
9
15
|
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
10
17
|
"README.markdown"
|
11
18
|
]
|
12
|
-
s.files
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"MIT-LICENSE",
|
24
|
+
"README.markdown",
|
25
|
+
"Rakefile",
|
26
|
+
"active_scaffold_export.gemspec",
|
27
|
+
"frontends/default/images/export.png",
|
28
|
+
"frontends/default/stylesheets/export-stylesheet-ie.css",
|
29
|
+
"frontends/default/stylesheets/export-stylesheet.css",
|
30
|
+
"frontends/default/views/_export.csv.erb",
|
31
|
+
"frontends/default/views/_export_form_body.html.erb",
|
32
|
+
"frontends/default/views/_show_export.html.erb",
|
33
|
+
"frontends/default/views/show_export.html.erb",
|
34
|
+
"init.rb",
|
35
|
+
"lib/active_scaffold/actions/export.rb",
|
36
|
+
"lib/active_scaffold/config/export.rb",
|
37
|
+
"lib/active_scaffold/helpers/export_helpers.rb",
|
38
|
+
"lib/active_scaffold_export.rb",
|
39
|
+
"lib/active_scaffold_export/config/core.rb",
|
40
|
+
"lib/active_scaffold_export/version.rb"
|
41
|
+
]
|
17
42
|
s.homepage = %q{http://github.com/mojotech/active_scaffold_export}
|
18
|
-
s.
|
43
|
+
s.licenses = ["MIT"]
|
19
44
|
s.require_paths = ["lib"]
|
20
45
|
s.rubygems_version = %q{1.3.7}
|
21
|
-
s.summary = %q{
|
46
|
+
s.summary = %q{Exporting Records with ActiveScaffold}
|
22
47
|
|
23
48
|
if s.respond_to? :specification_version then
|
24
49
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
50
|
s.specification_version = 3
|
26
51
|
|
27
52
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
56
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
57
|
+
s.add_runtime_dependency(%q<active_scaffold>, [">= 3.0.5"])
|
28
58
|
s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
|
29
59
|
else
|
60
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
61
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
63
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
64
|
+
s.add_dependency(%q<active_scaffold>, [">= 3.0.5"])
|
30
65
|
s.add_dependency(%q<fastercsv>, [">= 0"])
|
31
66
|
end
|
32
67
|
else
|
68
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
69
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
70
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
71
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
72
|
+
s.add_dependency(%q<active_scaffold>, [">= 3.0.5"])
|
33
73
|
s.add_dependency(%q<fastercsv>, [">= 0"])
|
34
74
|
end
|
35
|
-
s.add_dependency("active_scaffold", ">= 3.0.5")
|
36
75
|
end
|
37
76
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render :partial => "base_form", :locals => {:xhr => false,
|
2
2
|
:form_action => :export,
|
3
3
|
:url_options => params_for(:action => :export, :format => 'csv'),
|
4
|
-
:method => :
|
4
|
+
:method => :post,
|
5
5
|
:cancel_link => true,
|
6
6
|
:headline => as_('Columns to Export'),
|
7
|
-
:body_partial => 'export_form_body'} %>
|
7
|
+
:body_partial => 'export_form_body'} %>
|
data/init.rb
CHANGED
@@ -2,6 +2,22 @@ module ActiveScaffold
|
|
2
2
|
module Helpers
|
3
3
|
# Helpers that assist with the rendering of a Export Column
|
4
4
|
module ExportHelpers
|
5
|
+
def self.included(base)
|
6
|
+
base.alias_method_chain :active_scaffold_stylesheets, :export
|
7
|
+
base.alias_method_chain :active_scaffold_ie_stylesheets, :export
|
8
|
+
end
|
9
|
+
|
10
|
+
# Provides stylesheets to include with +stylesheet_link_tag+
|
11
|
+
def active_scaffold_stylesheets_with_export(frontend = :default)
|
12
|
+
active_scaffold_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet.css", frontend)
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
# Provides stylesheets for IE to include with +stylesheet_link_tag+
|
17
|
+
def active_scaffold_ie_stylesheets_with_export(frontend = :default)
|
18
|
+
active_scaffold_ie_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet-ie.css", frontend)
|
19
|
+
end
|
20
|
+
|
5
21
|
## individual columns can be overridden by defining
|
6
22
|
# a helper method <column_name>_export_column(record)
|
7
23
|
# You can customize the output of all columns by
|
@@ -2,16 +2,17 @@
|
|
2
2
|
ActiveScaffold::Config::Core.class_eval do
|
3
3
|
# For some unobvious reasons, the class variables need to be defined
|
4
4
|
# *before* the cattr !!
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
self.send :class_variable_set, :@@export_show_form, true
|
6
|
+
self.send :class_variable_set, :@@export_allow_full_download, true
|
7
|
+
self.send :class_variable_set, :@@export_default_full_download, true
|
8
|
+
self.send :class_variable_set, :@@export_force_quotes, false
|
9
|
+
self.send :class_variable_set, :@@export_default_skip_header, false
|
10
|
+
self.send :class_variable_set, :@@export_default_delimiter, ','
|
11
|
+
|
11
12
|
cattr_accessor :export_show_form, :export_allow_full_download,
|
12
13
|
:export_force_quotes, :export_default_full_download,
|
13
14
|
:export_default_delimiter, :export_default_skip_header
|
14
15
|
|
15
16
|
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:show_export] = :get
|
16
|
-
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :
|
17
|
+
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :post
|
17
18
|
end
|
@@ -1,38 +1,44 @@
|
|
1
1
|
require 'fastercsv'
|
2
|
-
require 'active_scaffold' rescue nil
|
3
2
|
# Make sure that ActiveScaffold has already been included
|
4
3
|
ActiveScaffold rescue throw "should have included ActiveScaffold plug in first. Please make sure that this plug-in comes alphabetically after the ActiveScaffold plug-in"
|
5
4
|
|
5
|
+
|
6
6
|
# Load our overrides
|
7
|
-
require "
|
8
|
-
require "
|
7
|
+
require "active_scaffold_export/config/core.rb"
|
8
|
+
require "active_scaffold/helpers/view_helpers_override.rb"
|
9
|
+
|
10
|
+
module ActiveScaffoldExport
|
11
|
+
def self.root
|
12
|
+
File.dirname(__FILE__) + "/.."
|
13
|
+
end
|
14
|
+
end
|
9
15
|
|
10
16
|
module ActiveScaffold
|
11
17
|
module Actions
|
12
|
-
|
18
|
+
ActiveScaffold.autoload_subdir('actions', self, File.dirname(__FILE__))
|
13
19
|
end
|
14
20
|
|
15
21
|
module Config
|
16
|
-
|
22
|
+
ActiveScaffold.autoload_subdir('config', self, File.dirname(__FILE__))
|
17
23
|
end
|
18
24
|
|
19
25
|
module Helpers
|
20
|
-
|
26
|
+
ActiveScaffold.autoload_subdir('helpers', self, File.dirname(__FILE__))
|
21
27
|
end
|
22
28
|
end
|
23
29
|
|
30
|
+
# Register our helper methods
|
31
|
+
ActionView::Base.send(:include, ActiveScaffold::Helpers::ExportHelpers)
|
32
|
+
|
33
|
+
|
24
34
|
##
|
25
|
-
## Run the install script, too, just to make sure
|
35
|
+
## Run the install assets script, too, just to make sure
|
26
36
|
## But at least rescue the action in production
|
27
37
|
##
|
28
|
-
Rails::Application.initializer("active_scaffold_export.install_assets",
|
29
|
-
:after => "active_scaffold.install_assets") do
|
38
|
+
Rails::Application.initializer("active_scaffold_export.install_assets", :after => "active_scaffold.install_assets") do
|
30
39
|
begin
|
31
|
-
|
40
|
+
ActiveScaffoldAssets.copy_to_public(ActiveScaffoldExport.root)
|
32
41
|
rescue
|
33
42
|
raise $! unless Rails.env == 'production'
|
34
43
|
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Register our helper methods
|
38
|
-
ActionView::Base.send(:include, ActiveScaffold::Helpers::ExportHelpers)
|
44
|
+
end if defined?(ACTIVE_SCAFFOLD_EXPORT_GEM)
|
metadata
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 3
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.9.5
|
9
|
+
- 2
|
10
|
+
version: 3.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
+
- Volker Hochstein
|
13
14
|
- Mojo Tech, LLC
|
14
15
|
- see commits
|
15
16
|
autorequire:
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
+
date: 2011-02-01 00:00:00 -05:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
|
-
name: fastercsv
|
24
24
|
prerelease: false
|
25
|
-
|
25
|
+
name: shoulda
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
27
|
none: false
|
27
28
|
requirements:
|
28
29
|
- - ">="
|
@@ -31,36 +32,100 @@ dependencies:
|
|
31
32
|
segments:
|
32
33
|
- 0
|
33
34
|
version: "0"
|
34
|
-
|
35
|
-
|
35
|
+
requirement: *id001
|
36
|
+
type: :development
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
prerelease: false
|
39
|
+
name: bundler
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 23
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 0
|
49
|
+
- 0
|
50
|
+
version: 1.0.0
|
51
|
+
requirement: *id002
|
52
|
+
type: :development
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
prerelease: false
|
55
|
+
name: jeweler
|
56
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 7
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 5
|
65
|
+
- 2
|
66
|
+
version: 1.5.2
|
67
|
+
requirement: *id003
|
68
|
+
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
prerelease: false
|
71
|
+
name: rcov
|
72
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
requirement: *id004
|
82
|
+
type: :development
|
36
83
|
- !ruby/object:Gem::Dependency
|
37
|
-
name: active_scaffold
|
38
84
|
prerelease: false
|
39
|
-
|
85
|
+
name: active_scaffold
|
86
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
40
87
|
none: false
|
41
88
|
requirements:
|
42
89
|
- - ">="
|
43
90
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
91
|
+
hash: 17
|
45
92
|
segments:
|
46
93
|
- 3
|
47
94
|
- 0
|
48
|
-
-
|
49
|
-
version: 3.0.
|
95
|
+
- 11
|
96
|
+
version: 3.0.11
|
97
|
+
requirement: *id005
|
98
|
+
type: :runtime
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
prerelease: false
|
101
|
+
name: fastercsv
|
102
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
requirement: *id006
|
50
112
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
113
|
description: This Active Scaffold plugin provides a configurable CSV 'Export' action for Active Scaffold controllers
|
53
|
-
email:
|
114
|
+
email: activescaffold@googlegroups.com
|
54
115
|
executables: []
|
55
116
|
|
56
117
|
extensions: []
|
57
118
|
|
58
119
|
extra_rdoc_files:
|
120
|
+
- LICENSE.txt
|
59
121
|
- README.markdown
|
60
122
|
files:
|
123
|
+
- .document
|
61
124
|
- Gemfile
|
125
|
+
- LICENSE.txt
|
62
126
|
- MIT-LICENSE
|
63
127
|
- README.markdown
|
128
|
+
- Rakefile
|
64
129
|
- active_scaffold_export.gemspec
|
65
130
|
- frontends/default/images/export.png
|
66
131
|
- frontends/default/stylesheets/export-stylesheet-ie.css
|
@@ -73,16 +138,16 @@ files:
|
|
73
138
|
- lib/active_scaffold/actions/export.rb
|
74
139
|
- lib/active_scaffold/config/export.rb
|
75
140
|
- lib/active_scaffold/helpers/export_helpers.rb
|
76
|
-
- lib/active_scaffold/helpers/view_helpers_override.rb
|
77
141
|
- lib/active_scaffold_export.rb
|
78
142
|
- lib/active_scaffold_export/config/core.rb
|
143
|
+
- lib/active_scaffold_export/version.rb
|
79
144
|
has_rdoc: true
|
80
145
|
homepage: http://github.com/mojotech/active_scaffold_export
|
81
|
-
licenses:
|
82
|
-
|
146
|
+
licenses:
|
147
|
+
- MIT
|
83
148
|
post_install_message:
|
84
|
-
rdoc_options:
|
85
|
-
|
149
|
+
rdoc_options: []
|
150
|
+
|
86
151
|
require_paths:
|
87
152
|
- lib
|
88
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -109,6 +174,6 @@ rubyforge_project:
|
|
109
174
|
rubygems_version: 1.3.7
|
110
175
|
signing_key:
|
111
176
|
specification_version: 3
|
112
|
-
summary:
|
177
|
+
summary: Exporting Records with ActiveScaffold
|
113
178
|
test_files: []
|
114
179
|
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Need to open the AS module carefully due to Rails 2.3 lazy loading
|
2
|
-
ActiveScaffold::Helpers::ViewHelpers.module_eval do
|
3
|
-
# Add the export plugin includes
|
4
|
-
|
5
|
-
# Provides stylesheets to include with +stylesheet_link_tag+
|
6
|
-
def active_scaffold_stylesheets_with_export(frontend = :default)
|
7
|
-
active_scaffold_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet.css", frontend)
|
8
|
-
end
|
9
|
-
alias_method_chain :active_scaffold_stylesheets, :export
|
10
|
-
|
11
|
-
# Provides stylesheets for IE to include with +stylesheet_link_tag+
|
12
|
-
def active_scaffold_ie_stylesheets_with_export(frontend = :default)
|
13
|
-
active_scaffold_ie_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet-ie.css", frontend)
|
14
|
-
end
|
15
|
-
alias_method_chain :active_scaffold_ie_stylesheets, :export
|
16
|
-
|
17
|
-
end
|