Class: OrangeAdvert

Inherits:
Orange::Carton show all
Defined in:
lib/orange-more/adverts/cartons/adverts_carton.rb

Constant Summary

Constants inherited from Orange::Carton

Orange::Carton::SCAFFOLD_OPTIONS

Class Method Summary collapse

Methods inherited from Orange::Carton

add_scaffold, admin, admin_property, as_resource, asset, boolean, date, datetime, expose, form_props, front, front_property, fulltext, id, init, orange, orange_property, scaffold_property, string, text, time, title, #to_s

Methods included from ClassInheritableAttributes

#cattr_accessor, #cattr_reader, #cattr_writer, eval_in_accessor_module, fetch_value, store_value

Class Method Details

.with_tag(tag) ⇒ Object



10
11
12
# File 'lib/orange-more/adverts/cartons/adverts_carton.rb', line 10

def self.with_tag(tag)
  all(:tags.like => "%#{tag}%")
end