Sha256: 8dc50dd3bcd62fb128348069d69ee60b969d2b6076a8c1ff08235ebb6e852f3a

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 Bytes

Contents

module Authenticate
  #
  # Simple debug output for gem.
  #
  module Debug
    extend ActiveSupport::Concern

    def debug(msg)
      if defined?(Rails) && defined?(Rails.logger) && Authenticate.configuration.debug
        Rails.logger.info msg.to_s
      elsif Authenticate.configuration.debug
        puts msg.to_s
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/authenticate/debug.rb
authenticate-0.7.2 lib/authenticate/debug.rb
authenticate-0.7.1 lib/authenticate/debug.rb
authenticate-0.7.0 lib/authenticate/debug.rb
authenticate-0.6.1 lib/authenticate/debug.rb
authenticate-0.6.0 lib/authenticate/debug.rb
authenticate-0.5.0 lib/authenticate/debug.rb
authenticate-0.4.0 lib/authenticate/debug.rb
authenticate-0.3.3 lib/authenticate/debug.rb
authenticate-0.3.2 lib/authenticate/debug.rb