Sha256: ea45d5249f828bf2d236c058a482d1e6b48f8ab4cb91ef6b4de8a5fe4a1d76c9
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
# Loads all required submodules # Base -> provides the basic gravatar_url method, can also be used for # custom implementations, just include Gravatarify::Base. require 'gravatarify/base' require 'gravatarify/object_support' require 'gravatarify/helper' # setup for AR und DataMapper, note: DataMapper yet untested :) but I suppose it works, because # it works as expected on plain old ruby objects! ActiveRecord::Base.send(:include, Gravatarify::ObjectSupport) if defined?(ActiveRecord) DataMapper::Model.append_inclusions(Gravatarify::ObjectSupport) if defined?(DataMapper) # and HAML support (if defined) Haml::Helpers.send(:include, Gravatarify::Helper) if defined?(Haml)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gravatarify-1.2.1 | lib/gravatarify.rb |
gravatarify-1.2.0 | lib/gravatarify.rb |