Sha256: af0540334dfe906ee7686e590aed69d7b5c082e3231029aa54dfa082efe94ece

Contents?: true

Size: 245 Bytes

Versions: 13

Compression:

Stored size: 245 Bytes

Contents

module ExpressTranslate
  class ResetGenerator < Rails::Generators::Base    
    include ExpressTranslate

    # Clear all data for redis database
    def reset_data
      ExpressTranslate.reset
      puts "Reset successful!"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
express_translate-1.0.13 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.12 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.11 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.10 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.9 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.8 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.7 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.6 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.5 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.4 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.3 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.2 lib/generators/express_translate/reset_generator.rb
express_translate-1.0.1 lib/generators/express_translate/reset_generator.rb