Sha256: 8f8ea58839fd9b5103d39b3502943cbbf513573ed043154f1fdaf0a63f5a2a7a

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

module Railsless
  module ActiveRecord
    class SeedLoader
      attr_accessor :path
      def initialize(path)
        @path = path
      end

      def load_seed
        Kernel.load(path) if path && File.exist?(path)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsless-active_record-0.0.2 lib/railsless/active_record/seed_loader.rb
railsless-active_record-0.0.1 lib/railsless/active_record/seed_loader.rb