Sha256: dbc1e61b96ac7dcdd6ee8e6ee8c67e04a44284234c547c3b804c68a42de73338

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

require 'fileutils'

# This code only makes sure that invoke method in scaffold generator has been run correctly
if ARGV[0] == "generate" && ARGV[1] == "model"
	root_path = File.expand_path('../../', __FILE__)
	models_path = File.join(root_path, 'app', 'models')
	filename = ARGV[2]

	FileUtils.mkdir_p models_path
	FileUtils.touch File.join(models_path, "#{filename.downcase}.rb")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
admin-panel-0.1.1 spec/dummy/bin/rails
admin-panel-0.1.0 spec/dummy/bin/rails