Sha256: 9f57470ff25cc07cbe03c8064005eb9e92f514937fab248d58a4df4b9dfb32fb

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

class FeaturesTasks

  def self.titleize
    # all sites
    Site.all.each do |site|
      site.features.all.each_with_index do |feature, idx|
        new = feature.name.titleize
        if new != feature.name
          f = site.features.find(feature.id)
          f.update_attributes :name => new
        end
      end
    end
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ish_lib-0.0.8 lib/features_tasks.rb
ish_lib_engine-0.0.5 lib/features_tasks.rb
ish_lib_engine-0.0.3 lib/features_tasks.rb
ish_lib_engine-0.0.2 lib/features_tasks.rb
ish_lib_engine-0.0.1 lib/features_tasks.rb
ish_lib-0.0.3 lib/features_tasks.rb