Module: Faces::Configuration

Defined in:
lib/faces.rb,
lib/providers/flickr.rb,
lib/providers/twitter.rb,
lib/providers/facebook.rb,
lib/providers/gravatar.rb,
lib/providers/highrise.rb

Constant Summary collapse

UNIVERSAL =

Universal configuration for avatars

{
  # Avatar to default to
  :default      => 'http://www.gravatar.com/avatar/?d=identicon',
  # Max height or width pixel size for returned avatar
  :size         => 50,
  # CSS classes to be assigned to all <img /> tags
  :html_classes => 'faces avatar',
  # Use a secure connection when one is available
  :use_secure   => false,
  # If we only ever want to return square images, set to square-only
  :dimension_restriction  => ''
}
FLICKR =

Configuration for Flickr avatars

{
  # Required to use the Flickr provider
  :flickr_api_key => '',
  # Additional HTML classes specific to Twitter provider (merged with :html_classes)
  :html_provider_classes => 'twitter'
}
TWITTER =

Configuration for Twitter avatars

{
  # Additional HTML classes specific to Twitter provider (merged with :html_classes)
  :html_provider_classes => 'twitter'
}
FACEBOOK =

Configuration for facebook avatars

{
  # Show facebook logo
  :facebook_logo      => false,
  # Additional HTML classes specific to Facebook provider (merged with :html_classes)
  :html_provider_classes => 'facebook',
  # Link back to Facebook automatically?
  :facebook_auto_linked => false    
}
GRAVATAR =

Configuration for Gravatar avatars

{
  # Apply a Gravatar rating requirement ('G', 'PG', 'R', 'X')
  # We default to 'G' to remain consistant with Gravatar
  :gravatar_rating       => 'G',
  # Additional HTML classes specific to Gravatar provider (merged with :html_classes)
  :html_provider_classes => 'gravatar'
}
HIGHRISE =

Configuration for highrise avatars

{
  # Base account name (http://accountname.highrisehq.com)
  :highrise_account_name => '',
  # Additional HTML classes specific to Highrise provider (merged with :html_classes)
  :html_provider_classes => 'highrise'
}