Sha256: 3218539f4fd83b6c96ea03fb598e1303a4bd8384d1e09b1f44317a87e7fbe06e
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require "rails/generators" module FilterWord module Generators class SetupGenerator < ::Rails::Generators::Base desc "This generator creates necessary at config/filter_word" source_root File.expand_path("../templates", __FILE__) def generate_setup copy_file "chinese_dictionary.txt", "config/filter_word/chinese_dictionary.txt" copy_file "english_dictionary.txt", "config/filter_word/english_dictionary.txt" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filter_word-0.0.2 | lib/generators/filter_word/setup/setup_generator.rb |