Sha256: 9b40bb2758194dde05b421b0bb7f5e9c2448a318924ecd4217a74403b7e45c98
Contents?: true
Size: 812 Bytes
Versions: 5
Compression:
Stored size: 812 Bytes
Contents
class StaticAppGenerator < Rails::Generator::Base def initialize(runtime_args, runtime_options = {}) super @name = 'application' end def manifest record do |m| m.directory 'app/views/layouts' m.directory 'public/stylesheets' m.directory 'app/helpers' m.template "layout.html.erb", "app/views/layouts/application.html.erb" m.file "static_style.css", "public/stylesheets/static_style.css" m.file "sorttable.js", "public/javascripts/sorttable.js" m.file "application_helper.rb", "app/helpers/application_helper.rb" m.file "layout_helper.rb", "app/helpers/layout_helper.rb" end end protected def banner "Creates layout, stylesheet, and helper files designed to be compatible with other static_scaffolds" end end
Version data entries
5 entries across 5 versions & 2 rubygems