Sha256: e3baf95c2181a1a916148cbd789cf5c34a7ac1494986de04a0aa2deb3c6e07a0

Contents?: true

Size: 259 Bytes

Versions: 44

Compression:

Stored size: 259 Bytes

Contents

module BrowserifyRails::Logger
  def self.log(message)
    Rails.logger.debug message
    puts "\n#{message}\n\n" if in_dummy_rails?
  end

  def self.in_dummy_rails?
    @in_dummy_rails ||= !!Rails.root.to_s.match(/browserify-rails\/test\/dummy$/)
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
browserify-rails-4.4.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-4.3.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-4.3.0.pre lib/browserify-rails/browserify_logger.rb
browserify-rails-4.2.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-4.1.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-4.0.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-4.0.0.b lib/browserify-rails/browserify_logger.rb
browserify-rails-3.4.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-3.3.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-3.2.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-3.1.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-3.0.1 lib/browserify-rails/browserify_logger.rb
browserify-rails-3.0.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-2.2.1 lib/browserify-rails/browserify_logger.rb
browserify-rails-2.2.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-2.1.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-2.0.3 lib/browserify-rails/browserify_logger.rb
browserify-rails-2.0.2 lib/browserify-rails/browserify_logger.rb
browserify-rails-1.5.0 lib/browserify-rails/browserify_logger.rb
browserify-rails-1.4.0 lib/browserify-rails/browserify_logger.rb