Sha256: c999032468536da15f334eaa7c40eb99349c97e34c65518e41688fc7663f20e5
Contents?: true
Size: 807 Bytes
Versions: 5
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true require "active_record" module Snapcher class Error < StandardError; end # Your code goes here... class << self attr_accessor :column_name attr_writer :scanning_class def scanning_class # The scanning_class is set as String in the initializer. # It can not be constantized during initialization and must # be constantized at runtime. @scanning_class = @scanning_class.safe_constantize if @scanning_class.is_a?(String) @scanning_class ||= Snapcher::Scanning end end end require "snapcher/junker" ActiveSupport.on_load :active_record do require "snapcher/scanning" include Snapcher::Junker end require "snapcher/sweeper" require_relative "snapcher/railtie" if defined?(Rails::Railtie) # require "snapcher/railtie"
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
snapcher-0.1.5 | lib/snapcher.rb |
snapcher-0.1.4 | lib/snapcher.rb |
snapcher-0.1.3 | lib/snapcher.rb |
snapcher-0.1.2 | lib/snapcher.rb |
snapcher-0.1.1 | lib/snapcher.rb |