class Alchemy::Custom::Model::ElFinder::Paths::Image
Public Instance Methods
active_record_class()
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 17 def active_record_class ::Alchemy::Picture end
dim()
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 36 def dim "#{active_record_instance.image_file_width}x#{active_record_instance.image_file_height}" end
file()
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 21 def file active_record_instance.image_file end
file=(val)
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 25 def file=(val) active_record_instance.image_file = val end
full_fill_paylod(payload)
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 11 def full_fill_paylod(payload) payload[:tmb] = self.tmb payload[:original_url] = active_record_instance.image_file.url payload end
is_image?()
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 31 def is_image? true end
tmb()
click to toggle source
url per la thumb
# File lib/alchemy/custom/model/el_finder/paths/image.rb, line 7 def tmb active_record_instance.image_file.thumb('100x100#').url end