Sha256: 80de733e06d040d6c4654f658755a60b3f1b5b7ea00fcfbdb7c92fec72fc7bb2

Contents?: true

Size: 1.24 KB

Versions: 96

Compression:

Stored size: 1.24 KB

Contents

module ActiveScaffold::Config
  class ExportTool < Base

    self.crud_type = :read

    def initialize(core_config)
      @core = core_config

      # inherit from global scope
      @empty_field_text = self.class.empty_field_text
      @delimiter = self.class.delimiter
      @force_quotes = self.class.force_quotes
      @skip_header = self.class.skip_header
      @maximum_rows = self.class.maximum_rows
    end

    # global level configuration
    # --------------------------
    # the ActionLink for this action
    cattr_reader :link
    @@link = ActiveScaffold::DataStructures::ActionLink.new('show_export_tool', :label => :export, :type => :table, :security_method => :export_tool_authorized?)
    
    cattr_accessor :empty_field_text
    @@empty_field_text = ''
    
    cattr_accessor :delimiter
    @@delimiter = ","

    cattr_accessor :force_quotes
    @@force_quotes = false
    
    cattr_accessor :maximum_rows
    @@maximum_rows = 10000

    cattr_accessor :skip_header
    @@skip_header = false

    # instance-level configuration
    # ----------------------------

    attr_accessor :empty_field_text

    attr_accessor :delimiter

    attr_accessor :force_quotes
    
    attr_accessor :maximum_rows

    attr_accessor :skip_header

  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb