Class: Crimagify::Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Crimagify::Image
- Extended by:
- DinamicImageMethods
- Defined in:
- app/models/crimagify/image.rb
Instance Attribute Summary collapse
-
#crop_h ⇒ Object
Returns the value of attribute crop_h.
-
#crop_w ⇒ Object
Returns the value of attribute crop_w.
-
#crop_x ⇒ Object
Returns the value of attribute crop_x.
-
#crop_y ⇒ Object
Returns the value of attribute crop_y.
Instance Method Summary collapse
Methods included from DinamicImageMethods
build_methods_images, build_sizes_images
Instance Attribute Details
#crop_h ⇒ Object
Returns the value of attribute crop_h.
12 13 14 |
# File 'app/models/crimagify/image.rb', line 12 def crop_h @crop_h end |
#crop_w ⇒ Object
Returns the value of attribute crop_w.
12 13 14 |
# File 'app/models/crimagify/image.rb', line 12 def crop_w @crop_w end |
#crop_x ⇒ Object
Returns the value of attribute crop_x.
12 13 14 |
# File 'app/models/crimagify/image.rb', line 12 def crop_x @crop_x end |
#crop_y ⇒ Object
Returns the value of attribute crop_y.
12 13 14 |
# File 'app/models/crimagify/image.rb', line 12 def crop_y @crop_y end |
Instance Method Details
#crop_avatar_real ⇒ Object
20 21 22 |
# File 'app/models/crimagify/image.rb', line 20 def crop_avatar_real image.recreate_versions! if crop_x.present? end |
#crop_avatar_temporal ⇒ Object
14 15 16 17 18 |
# File 'app/models/crimagify/image.rb', line 14 def crop_avatar_temporal if image_temporal.present? image_temporal.recreate_versions! if crop_x.present? end end |