Files

Class Index [+]

Quicksearch

UbiquoMedia::Connectors::I18n::Asset::ClassMethods

Public Instance Methods

uhook_filtered_search(filters = {}) {|| ...} click to toggle source

Applies any required extra scope to the filtered_search method

    # File vendor/plugins/ubiquo_media/lib/ubiquo_media/connectors/i18n.rb, line 48
48:           def uhook_filtered_search filters = {}
49:             filter_locale = filters[:locale] ?
50:               {:find => {:conditions => ["assets.locale <= ?", filters[:locale]]}} : {}
51: 
52:             with_scope(filter_locale) do
53:               yield
54:             end
55:           end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.