Sha256: d419d3c5ac53ff7ae3d524ac381a98c81f070c3170fc411d05988e9c387d99b5

Contents?: true

Size: 223 Bytes

Versions: 8

Compression:

Stored size: 223 Bytes

Contents

class OrangeTestimonial < Orange::Carton
  id
  admin do
    title :name
    text :position
    text :company
    text :tags
    fulltext :blurb
  end
  
  def self.with_tag(tag)
    all(:tags.like => "%#{tag}%")
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
orange-0.2.6 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.2.5 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.2.4 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.2.3 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.1.10 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.1.8 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.1.7 lib/orange-more/testimonials/cartons/testimonials_carton.rb
orange-0.1.4 lib/orange-more/testimonials/cartons/testimonials_carton.rb