Sha256: cabd74c3b8bf08be8f3f150c65dac40227d025fc888b2fc8fb92c84b22a4d559
Contents?: true
Size: 526 Bytes
Versions: 6
Compression:
Stored size: 526 Bytes
Contents
require 'rails/generators/active_record' module PowerShop module Generators class InstallGenerator < ActiveRecord::Generators::Base desc "Installs Power Shop" def self.source_root @_power_shop_source_root ||= File.expand_path("../templates", __FILE__) end def setup_directory empty_directory "app/admin" template 'active_admin/category.rb.erb', 'app/admin/category.rb' template 'active_admin/product.rb.erb', 'app/admin/product.rb' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems