Sha256: 29ea517540cf82837f6bca50c5de3384cdd42997837a517af470d57eca844cdc
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
require 'generators/cells/base' module Haml 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.haml") template "view.haml", @path end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems