Sha256: 8323df351cdb7ae3cd5da594d653693628b3b0c773b88ac112f46ce25c854529

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

class TagCloud < ActiveRecord::Base
  
  def self.language_tags language_id = 38, filter = ''
    results = TagCloud.find(:all, :conditions => ["language_id = ? AND filter = ?", language_id, filter])
    results.empty? ? '' : results[0].tag_list
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
muck-raker-0.1.5 app/models/tag_cloud.rb
muck-raker-0.1.6 app/models/tag_cloud.rb
muck-raker-0.1.7 app/models/tag_cloud.rb
muck-raker-0.1.8 app/models/tag_cloud.rb
muck-raker-0.1.9 app/models/tag_cloud.rb
muck-raker-0.1.10 app/models/tag_cloud.rb
muck-raker-0.1.11 app/models/tag_cloud.rb
muck-raker-0.1.12 app/models/tag_cloud.rb
muck-raker-0.1.13 app/models/tag_cloud.rb