Sha256: c29cf48bc5a93412fcd6cf8b03bb41d7142a8c4227148cc71396eed529d8a4ac

Contents?: true

Size: 335 Bytes

Versions: 9

Compression:

Stored size: 335 Bytes

Contents

require "pluck_map/version"
require "pluck_map/model_context"
require "pluck_map/presenter"
require "pluck_map/null_logger"

module PluckMap
  class << self
    attr_accessor :logger

    def [](model)
      PluckMap::ModelContext.new(model)
    end
  end

  @logger = (Rails.logger if defined?(Rails)) || PluckMap::NullLogger.new
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pluck_map-2.0.0 lib/pluck_map.rb
pluck_map-2.0.0.rc1 lib/pluck_map.rb
pluck_map-1.0.0 lib/pluck_map.rb
pluck_map-1.0.0.rc2 lib/pluck_map.rb
pluck_map-0.6.2 lib/pluck_map.rb
pluck_map-1.0.0.rc1 lib/pluck_map.rb
pluck_map-0.6.1 lib/pluck_map.rb
pluck_map-0.6.0 lib/pluck_map.rb
pluck_map-0.5.0 lib/pluck_map.rb