locomotivecms/steam

View on GitHub
lib/locomotive/steam/adapters/mongodb/dataset.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Locomotive::Steam
  module Adapters
    module MongoDB

      class Dataset < SimpleDelegator

        def initialize(records = [], &block)
          @records = block_given? ? yield : records
          super(@records)
        end

        def all
          @records
        end

      end

    end
  end
end