Sha256: 934ea038af979846e9f4ab1586f740135592a76c2740f2375b893150ef6d29f0

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

# Need to open the AS module carefully due to Rails 2.3 lazy loading
ActiveScaffold::Config::Core.class_eval do
  # For some note obvious reasons, the class variables need to be defined
  # *before* the cattr !!
  @@export_show_form = true
  @@export_allow_full_download = true
  @@export_default_full_download = true
  @@export_force_quotes = false
  @@export_default_skip_header = false
  @@export_default_delimiter = ','
  cattr_accessor :export_show_form, :export_allow_full_download,
      :export_force_quotes, :export_default_full_download,
      :export_default_delimiter, :export_default_skip_header

  ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:show_export] = :get
  ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :get
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_scaffold_export_vho-3.0.0 lib/active_scaffold_export/config/core.rb