Sha256: 42549c918d4047bd739201241f4775cfd3bd99f839ba56e5630668057d9bbd26
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
class Storey::Dumper delegate :dump, to: :dumper def self.dump(*args) self.new(*args).dump end def initialize(options={}) @options = options end def dumper dumper_class.new(@options) end def dumper_class schema_format = Rails.configuration.active_record.schema_format || :ruby klass = case schema_format when :sql; Storey::SqlDumper when :ruby; Storey::RubyDumper end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
storey-0.4.0 | lib/storey/dumper.rb |
storey-0.3.6 | lib/storey/dumper.rb |
storey-0.3.5 | lib/storey/dumper.rb |