Sha256: b5d24f9b3ebcf239a7e790f2775edf1eaf4a147979882eb1783690ee8fa128fb
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
require 'rails/generators/named_base' module Cachers module Generators class CacherGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_model_cacher template 'cacher.rb', "app/cachers/#{file_name}_cacher.rb" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cachers-0.1.1 | lib/generators/cachers/cacher_generator.rb |
cachers-0.0.1 | lib/generators/cachers/cacher_generator.rb |