Module: SimpleCrop::ActiveRecord::InstanceMethods
- Defined in:
- lib/simple_crop/active_record/simple_crop.rb
Instance Method Summary collapse
Instance Method Details
#simple_crop_string ⇒ Object
22 23 24 |
# File 'lib/simple_crop/active_record/simple_crop.rb', line 22 def simple_crop_string "#{simple_crop_w}x#{simple_crop_h}+#{simple_crop_x}+#{simple_crop_y}" end |
#wants_simple_crop? ⇒ Boolean
18 19 20 |
# File 'lib/simple_crop/active_record/simple_crop.rb', line 18 def wants_simple_crop? eval (%w(x y w h).collect {|v| "!simple_crop_#{v}.blank?"}.join(" and ")+" and !simple_crop_style.blank?") end |