Sha256: 9c0e1dad7046436f2206fa4cbd579da936a62980f7529431b822d5a14774e56f

Contents?: true

Size: 979 Bytes

Versions: 9

Compression:

Stored size: 979 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 !!
  self.send :class_variable_set, :@@export_show_form, true
  self.send :class_variable_set, :@@export_allow_full_download, true
  self.send :class_variable_set, :@@export_default_full_download, true
  self.send :class_variable_set, :@@export_force_quotes, false
  self.send :class_variable_set, :@@export_default_skip_header, false
  self.send :class_variable_set, :@@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] = :post
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
active_scaffold_export_vho-3.1.4 lib/active_scaffold_export/config/core.rb
active_scaffold_export_vho-3.1.3 lib/active_scaffold_export/config/core.rb
active_scaffold_export-3.3.0 lib/active_scaffold_export/config/core.rb
active_scaffold_export-3.2.2 lib/active_scaffold_export/config/core.rb
active_scaffold_export-3.2.1 lib/active_scaffold_export/config/core.rb
active_scaffold_export_vho-3.1.2 lib/active_scaffold_export/config/core.rb
active_scaffold_export_vho-3.1.1 lib/active_scaffold_export/config/core.rb
active_scaffold_export_vho-3.1.0 lib/active_scaffold_export/config/core.rb
active_scaffold_export_vho-3.0.1 lib/active_scaffold_export/config/core.rb