Sha256: ba12e9021a88d886954da9906e0a8ddfa17e7f78c2faf88ce0ae806fc08fa6e3
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require 'rails/generators/erb' module Erb module Generators class CellGenerator < Base argument :actions, :type => :array, :default => [], :banner => "action action" def copy_view_files base_path = File.join("app/cells", class_path, file_name) empty_directory base_path puts base_path.inspect actions.each do |action| @action = action @path = File.join(base_path, filename_with_extensions(action)) template filename_with_extensions(:view), @path end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cells-3.4.0.beta2 | rails_generators/erb/cell_generator.rb |
cells-3.4.0.beta1 | rails_generators/erb/cell_generator.rb |