Sha256: 43fde7ec860874315c59c69498af3cda352483c02ffa9ee12343ad736b2e2a7c

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

module OldSql
  require 'old_sql/engine' if defined?(Rails)
  
  # The title of the Report Selection View.
  mattr_accessor :report_select_page_title
  @@report_select_page_title = 'Old SQL Reports'
  
  # The default report view. This setting will be used unless overridden in 
  # config/old_sql/reports.yml.
  mattr_accessor :default_report_view
  @@default_report_view = 'jqgrid'
  
  # Determines whether the values for the report will be rounded.
  mattr_accessor :round_report_values
  @@round_report_values = true
  
  # The precision to round all values to if rounding is enabled.
  mattr_accessor :rounding_precision
  @@rounding_precision = 2
  
  # Width of the jqGrid component in the jqGrid report view.
  mattr_accessor :jqgrid_width
  @@jqgrid_width = 800
  
  # Height of the jqGrid component in the jqGrid report view.
  mattr_accessor :jqgrid_height
  @@jqgrid_width = 630
  
  # Number of rows to display in the jqGrid component in the jqGrid report view.
  mattr_accessor :jqgrid_row_num
  @@jqgrid_row_num = 25
  
  # Default way to setup Old SQL. Run rails generate old_sql:install to create
  # a fresh initializer with all configuration values.
  def self.setup
    yield self
  end
end

require 'extensions/action_controller/base'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
old_sql-1.3.0 lib/old_sql.rb
old_sql-1.2.0 lib/old_sql.rb