Sha256: 22c46ff8be376d3714ed128e087b153098479f789a726c6dab3f1830fad5c449

Contents?: true

Size: 359 Bytes

Versions: 25

Compression:

Stored size: 359 Bytes

Contents

module SearchHelper  
  def get_search_query_words
    search_query = ""
    bare_query = strip_tags(params[:q]) unless bare_query.html_safe?
    return bare_query.strip.split
  end

  def search_results?(key)
    SocialStream::Search.count(params[:q],
                               current_subject,
                               :key => key) > 0
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/helpers/search_helper.rb
social_stream-base-2.2.2 app/helpers/search_helper.rb
social_stream-2.2.1 base/app/helpers/search_helper.rb
social_stream-base-2.2.1 app/helpers/search_helper.rb
social_stream-2.2.0 base/app/helpers/search_helper.rb
social_stream-base-2.2.0 app/helpers/search_helper.rb
social_stream-2.1.1 base/app/helpers/search_helper.rb
social_stream-2.1.0 base/app/helpers/search_helper.rb
social_stream-base-2.1.0 app/helpers/search_helper.rb
social_stream-2.0.4 base/app/helpers/search_helper.rb
social_stream-base-2.0.4 app/helpers/search_helper.rb
social_stream-2.0.3 base/app/helpers/search_helper.rb
social_stream-base-2.0.3 app/helpers/search_helper.rb
social_stream-2.0.2 base/app/helpers/search_helper.rb
social_stream-base-2.0.2 app/helpers/search_helper.rb
social_stream-2.0.1 base/app/helpers/search_helper.rb
social_stream-base-2.0.1 app/helpers/search_helper.rb
social_stream-2.0.0 base/app/helpers/search_helper.rb
social_stream-base-2.0.0 app/helpers/search_helper.rb
social_stream-2.0.0.beta3 base/app/helpers/search_helper.rb