Sha256: 2571e00035409ce1b2a5efdb05091acbf453a9562b874cb956ddb82ba78c16e0
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
require 'generators/cells/base' module Erb module Generators class CellGenerator < ::Cells::Generators::Base source_root File.expand_path('../../templates', __FILE__) def create_views for state in actions do @state = state @path = File.join('app/cells', file_name, "#{state}.html.erb") template "view.erb", @path end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems