Sha256: efa129964c9f4f729e6b3debd897f44dc059b5cb96353f22f1ce9d7fa336d3e2
Contents?: true
Size: 305 Bytes
Versions: 1
Compression:
Stored size: 305 Bytes
Contents
require 'rails/generators' module Indexes module Generators class IndexGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_index_file template 'index.rb', "app/indexes/#{table_name}_index.rb" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
indexes-0.0.1 | lib/generators/indexes/index_generator.rb |