Sha256: c84f99c34a775aac2490482b99e49b653e591d4a85ee534298018ec9b8eec115

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

FactoryGirl.define do
  factory :dummy_table, class: "TableCloth::Base" do
    initialize_with do
      Class.new(TableCloth::Base).tap do |klass|
        attributes.each do |key,attribute|
          klass.column *[key, attribute]
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
table_cloth-0.4.3 spec/factories/dummy_tables.rb
table_cloth-0.4.2 spec/factories/dummy_tables.rb
table_cloth-0.4.1 spec/factories/dummy_tables.rb
table_cloth-0.4.0 spec/factories/dummy_tables.rb
table_cloth-0.3.2 spec/factories/dummy_tables.rb
table_cloth-0.3.1.alpha1 spec/factories/dummy_tables.rb
table_cloth-0.3.0.beta3 spec/factories/dummy_tables.rb
table_cloth-0.3.0.beta2 spec/factories/dummy_tables.rb
table_cloth-0.3.0.beta1 spec/factories/dummy_tables.rb