Sha256: c3d88909963bb428a06b86a86a5e93f02d1faf0946ff771df6b6360ec540a3dd

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

module ActiveLdap
  if const_defined?(:GetTextFallback)
    class << self
      def get_text_supported?
        false
      end
    end
  else
    class << self
      def get_text_supported?
        true
      end
    end
  end

  module GetTextSupport
    class << self
      def included(base)
        base.class_eval do
          include(GetText)
          bindtextdomain("active-ldap")
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeldap-0.10.0 lib/active_ldap/get_text_support.rb
activeldap-0.9.0 lib/active_ldap/get_text_support.rb