Sha256: 1f2d1ed541479a12bf0d9f7730605830c455684312e9dc7428c45c2fadd33e15

Contents?: true

Size: 569 Bytes

Versions: 8

Compression:

Stored size: 569 Bytes

Contents

# Copyright:: (c) Autotelik Media Ltd 2011
# Author ::   Tom Statter
# Date ::     Aug 2010
# License::   MIT
#
#  Details::  Base class for generators, which provide serivrs to describe a Model in an external format
#
module DataShift

  class GeneratorBase

    attr_accessor :filename, :headers, :remove_list
  
    def initialize(filename)
      @filename = filename
      @headers = []
      @remove_list =[]
    end
    
    
    def self.rails_columns
      @rails_standard_columns ||= [:id, :created_at, :created_on, :updated_at, :updated_on]
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datashift-0.15.0 lib/generators/generator_base.rb
datashift-0.14.0 lib/generators/generator_base.rb
datashift-0.13.0 lib/generators/generator_base.rb
datashift-0.12.1 lib/generators/generator_base.rb
datashift-0.12.0 lib/generators/generator_base.rb
datashift-0.11.1 lib/generators/generator_base.rb
datashift-0.11.0 lib/generators/generator_base.rb
datashift-0.10.2 lib/generators/generator_base.rb