Sha256: a52e8a58570524761c6c2ee180b05b726337c13bfd63a28d4b547593b2adc97b

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

require "microscope/version"

require 'active_record'
require 'active_support'

require "microscope/mixin"

module Microscope
  def self.inject_into_active_record
    @inject_into_active_record ||= Proc.new do
      def self.acts_as_microscope(options = {})
        self.microscope_options = options
        self.send :include, Microscope::Mixin
      end

      def self.microscope_options=(options)
        @microscope_options = options
      end
    end
  end
end

require 'microscope/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
microscope-0.1.1 lib/microscope.rb
microscope-0.1 lib/microscope.rb