Sha256: b3f3ea62cd49e1d777f19a3fe55387d021ee1041dc3eb17aff3c488598f36797

Contents?: true

Size: 832 Bytes

Versions: 3

Compression:

Stored size: 832 Bytes

Contents

# Need to open the AS module carefully due to Rails 2.3 lazy loading
ActiveScaffold::Helpers::ViewHelpers.module_eval do
  # Add the export plugin includes

  # Provides stylesheets to include with +stylesheet_link_tag+
  def active_scaffold_stylesheets_with_export(frontend = :default)
    active_scaffold_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet.css", frontend)
  end
  alias_method_chain :active_scaffold_stylesheets, :export

  # Provides stylesheets for IE to include with +stylesheet_link_tag+
  def active_scaffold_ie_stylesheets_with_export(frontend = :default)
    active_scaffold_ie_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet-ie.css", frontend)
  end
  alias_method_chain :active_scaffold_ie_stylesheets, :export

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_scaffold_export-3.0.3 lib/active_scaffold/helpers/view_helpers_override.rb
active_scaffold_export-0.9.5 lib/active_scaffold/helpers/view_helpers_override.rb
active_scaffold_export-0.9.4 lib/active_scaffold/helpers/view_helpers_override.rb