Sha256: 005fb09d92d9b98c4180692296b59385d03f67cd1056902175d3a56c2517beb1

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 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/view_helper'
require 'gravatarify/object_support'

# include helper for rails
ActionView::Base.send(:include, Gravatarify::ViewHelper) if defined?(ActionView)

# 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)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gravatarify-1.0.0 lib/gravatarify.rb
gravatarify-0.7.0 lib/gravatarify.rb
gravatarify-0.6.0 lib/gravatarify.rb