Class: Profile
- Inherits:
-
User
- Object
- User
- Profile
- Defined in:
- app/models/profile.rb
Instance Attribute Summary collapse
-
#crop_h ⇒ Object
crop_uploaded :portrait.
-
#crop_w ⇒ Object
crop_uploaded :portrait.
-
#crop_x ⇒ Object
crop_uploaded :portrait.
-
#crop_y ⇒ Object
crop_uploaded :portrait.
Instance Method Summary collapse
Instance Attribute Details
#crop_h ⇒ Object
crop_uploaded :portrait
6 7 8 |
# File 'app/models/profile.rb', line 6 def crop_h @crop_h end |
#crop_w ⇒ Object
crop_uploaded :portrait
6 7 8 |
# File 'app/models/profile.rb', line 6 def crop_w @crop_w end |
#crop_x ⇒ Object
crop_uploaded :portrait
6 7 8 |
# File 'app/models/profile.rb', line 6 def crop_x @crop_x end |
#crop_y ⇒ Object
crop_uploaded :portrait
6 7 8 |
# File 'app/models/profile.rb', line 6 def crop_y @crop_y end |
Instance Method Details
#crop_portrait ⇒ Object
10 11 12 |
# File 'app/models/profile.rb', line 10 def crop_portrait portrait.recreate_versions! if crop_x.present? end |