faces 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/faces.gemspec +1 -1
- data/lib/faces.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/faces.gemspec
CHANGED
data/lib/faces.rb
CHANGED
@@ -58,13 +58,13 @@ module Faces
|
|
58
58
|
# Returns the default avatar in an <img /> HTML tag
|
59
59
|
def avatar_default_html(configuration = {})
|
60
60
|
default = configuration[:default].present? ? configuration[:default] : ::Faces::Configuration::UNIVERSAL[:default]
|
61
|
-
url = configuration[:size].present? ? default[configuration[:size]] : default::Faces::Configuration::UNIVERSAL[:size]
|
61
|
+
url = configuration[:size].present? ? default[configuration[:size]] : default[::Faces::Configuration::UNIVERSAL[:size]]
|
62
62
|
generate_html(url, configuration)
|
63
63
|
end
|
64
64
|
# Returns the default avatar as a url
|
65
65
|
def avatar_default_url(configuration = {})
|
66
66
|
default = configuration[:default].present? ? configuration[:default] : ::Faces::Configuration::UNIVERSAL[:default]
|
67
|
-
url = configuration[:size].present? ? default[configuration[:size]] : default::Faces::Configuration::UNIVERSAL[:size]
|
67
|
+
url = configuration[:size].present? ? default[configuration[:size]] : default[::Faces::Configuration::UNIVERSAL[:size]]
|
68
68
|
end
|
69
69
|
# Returns true if provider exists, false if not
|
70
70
|
def provider_exists?(provider)
|