Sha256: 4ef5e5a0a459805c35b64f6618103796f801f214811ad7f1dbd9ffb9339ad5a0

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

require 'active_record'

module ActiveRecord
  class Base
    cattr_accessor :where_syntax, :instance_writer => false
  end
end

module Everywhere
  class Railtie < ::Rails::Railtie #:nodoc:
    initializer 'everywhere' do |app|
      ActiveSupport.on_load(:active_record) do
        require "everywhere/#{app.config.active_record.where_syntax || 'hash_value'}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
everywhere-1.0.1 lib/everywhere/railtie.rb
everywhere-1.0.0 lib/everywhere/railtie.rb
everywhere-0.1.0 lib/everywhere/railtie.rb
everywhere-0.0.1 lib/everywhere/railtie.rb