Sha256: 4048e1606ad7caeb8fbbacedacadc096e6ed6925cb0dfc6f054a87658a57cbc5

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

require 'rails/generators'

module SpreadsheetArchitect
  class AddDefaultOptionsGenerator < Rails::Generators::Base

    def add_default_options
      create_file "config/initializers/spreadsheet_architect.rb", <<eos
SpreadsheetArchitect.default_options = {
  headers: true,
  header_style: {background_color: "AAAAAA", color: "FFFFFF", align: :center, bold: false, font_name: 'Arial', font_size: 10, italic: false, underline: false},
  row_style: {background_color: nil, color: "000000", align: :left, bold: false, font_name: 'Arial', font_size: 10, italic: false, underline: false},
  column_styles: [],
  range_styles: [],
  borders: []
}
eos
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spreadsheet_architect-2.1.2 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
spreadsheet_architect-2.1.1 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
spreadsheet_architect-2.1.0 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
spreadsheet_architect-2.0.2 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
spreadsheet_architect-2.0.1 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
spreadsheet_architect-2.0.0 lib/generators/spreadsheet_architect/add_project_defaults_generator.rb