avatars_for_rails 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95e211e0006a3dbbf2339b1ad5a19cee7227d0cb
4
- data.tar.gz: 25713072caae387232a6fc0d1d8e71fb94b32046
3
+ metadata.gz: cf28ac91439e93957f569641a63bfb528f414302
4
+ data.tar.gz: 15788e8f423c85822db6d5746bd65ea080a40942
5
5
  SHA512:
6
- metadata.gz: c8a9c962f822dda08f978b7ae11694b9b912a7511641ac6f4ad08c4e73c2f2da8c3edab64585cafcd6b4dc31b44447ac306f93829318156bbe719718b5324570
7
- data.tar.gz: 9aee6308778d687a5b2cf2f98a4cf9eb3ccba45e7dee5826513be0c70677a2dc19992038fc5b70e3fbbc8f59aca682de0d7a7a5c2dced039489ab4f32cf28004
6
+ metadata.gz: b5c63b400e394a7f960538bc5a2e77b666f27282ce38c1cafc2c348ae29b3f560dff3ab733e18ffc15e9088ea17d2b7581a94e2fd8a18cddb33021bd7517978b
7
+ data.tar.gz: be23eddf00bc3310c04cc990219da6f2e50c6b1866d7a004bb872a8f1d295c4afb321a6479540da9fda34d891c531764c92a07cfc867e2e36ab1c75ffa2d59f3
data/README.rdoc CHANGED
@@ -36,7 +36,9 @@ In your model, you must include:
36
36
  end
37
37
 
38
38
  For rendering the new avatar form:
39
- <%= render :partial => 'avatars/form' %>
39
+ <%= render partial: 'avatars/form',
40
+ object: @user,
41
+ as: :avatarable %>
40
42
 
41
43
  You must include the javascript and css files
42
44
 
@@ -54,7 +54,7 @@ module AvatarsForRails
54
54
  end
55
55
 
56
56
  def crop_avatar
57
- return unless logo_crop_x && avatar_tmp_file?
57
+ return unless logo_crop_x.present? && avatar_tmp_file?
58
58
 
59
59
  width, height = avatar_tmp_file_dimensions
60
60
 
@@ -1,3 +1,3 @@
1
1
  module AvatarsForRails
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatars_for_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Castro Montero
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-06 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails