Sha256: 07a27d22249daefcf65170cf0d035669b6b485828ac336bee8240b65ee64d792
Contents?: true
Size: 226 Bytes
Versions: 1
Compression:
Stored size: 226 Bytes
Contents
class <%= class_name %>View < ShatteredView::Base # View works by executing after any model event # This initialize will work after the model's initialize def initialize mesh = create(:mesh, "<%= class_name %>") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shattered-0.5.0.1 | lib/rails_generator/generators/components/view/templates/view.rb |