Sha256: 84ff2ac083726398e7513ad5813cd6b34bc151c64011337462b2d49aafd38b87
Contents?: true
Size: 718 Bytes
Versions: 3
Compression:
Stored size: 718 Bytes
Contents
require 'active_support/configurable' module RailsData # Config # Configure the standard CSV default options # as well the option to output the header row include ActiveSupport::Configurable configure do |config| config.mapping = ActiveSupport::OrderedOptions.new config.inflector = :titleize config.method_name = :report config.admin_class = 'AdminController' config.mapping.date = { input: 'date', output: 'to_date' } config.mapping.integer = { input: 'number', output: 'to_i' } config.mapping.string = { input: 'text', output: 'to_s' } config.mapping.text = { input: 'textarea', output: 'to_s' } config.mapping.array = { input: 'array', output: 'to_s' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_data-1.0.2 | lib/rails_data/config.rb |
rails_data-1.0.1 | lib/rails_data/config.rb |
rails_data-1.0.0 | lib/rails_data/config.rb |