Sha256: fece58da0f8464de9c80d0b0182fed82df415aa9dcaeaad1bbc1d5e416ff3b17

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

module StrictMoney
  # Initialize StrictMoney inside a Rails application.
  class Railtie < Rails::Railtie
    initializer :strict_money do
      Module.const_defined?(:Mongoid) && \
        require("strict_money/orms/mongoid")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
strict_money-0.4.0 lib/strict_money/railtie.rb
strict_money-0.3.0 lib/strict_money/railtie.rb
strict_money-0.2.0 lib/strict_money/railtie.rb