Sha256: e2d8f68a96adea577710ec085396a8a1f8bb96895f28f2f9a6fa8fb2e8734716

Contents?: true

Size: 574 Bytes

Versions: 19

Compression:

Stored size: 574 Bytes

Contents

module SportsDb
    class Engine < Rails::Engine
        if Rails.env.development?
          config.to_prepare do
            Rails.logger.debug "*** reloading sports_db gem (only in development mode) ***"
            require_dependency SportsDb::Engine.root.join('lib', 'sports_db').to_s
          end

          config.after_initialize do
            # optional, without it will call `to_prepend` only when a file changes,
            # not on every request
            Rails.application.config.reload_classes_only_on_change = false
          end
        end

    end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sports_db-0.2.19 lib/sports_db/engine.rb
sports_db-0.2.18 lib/sports_db/engine.rb
sports_db-0.2.17 lib/sports_db/engine.rb
sports_db-0.2.16 lib/sports_db/engine.rb
sports_db-0.2.15 lib/sports_db/engine.rb
sports_db-0.2.14 lib/sports_db/engine.rb
sports_db-0.2.13 lib/sports_db/engine.rb
sports_db-0.2.12 lib/sports_db/engine.rb
sports_db-0.2.11 lib/sports_db/engine.rb
sports_db-0.2.10 lib/sports_db/engine.rb
sports_db-0.2.9 lib/sports_db/engine.rb
sports_db-0.2.8 lib/sports_db/engine.rb
sports_db-0.2.7 lib/sports_db/engine.rb
sports_db-0.2.6 lib/sports_db/engine.rb
sports_db-0.2.5 lib/sports_db/engine.rb
sports_db-0.2.4 lib/sports_db/engine.rb
sports_db-0.2.3 lib/sports_db/engine.rb
sports_db-0.2.2 lib/sports_db/engine.rb
sports_db-0.2.1 lib/sports_db/engine.rb