Sha256: 5821f792ad055aa45d9d94c8f9b251b0ec43499e2cda3a11bc5aa15534edc96d
Contents?: true
Size: 533 Bytes
Versions: 4
Compression:
Stored size: 533 Bytes
Contents
module Findable module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path(File.join(File.dirname(__FILE__), "templates")) desc "Create seed_dir of Findable." def create_seed_dir create_file File.join("db", "findable_seeds", ".keep") end desc "Install Findable files" def install_findable_files template "seeds.rb", "db/findable_seeds.rb" template "findable.rb", "config/initializers/findable.rb" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems