Sha256: 01a191a2ed06fb0ca065f9b50853c6a95849e0c41791a2c2ee0c8e6882b8c61b
Contents?: true
Size: 981 Bytes
Versions: 18
Compression:
Stored size: 981 Bytes
Contents
class ClearanceViewsGenerator < Rails::Generator::Base def manifest record do |m| strategy = "formtastic" template_strategy = "erb" m.directory File.join("app", "views", "users") m.file "#{strategy}/users/new.html.#{template_strategy}", "app/views/users/new.html.#{template_strategy}" m.file "#{strategy}/users/_inputs.html.#{template_strategy}", "app/views/users/_inputs.html.#{template_strategy}" m.directory File.join("app", "views", "sessions") m.file "#{strategy}/sessions/new.html.#{template_strategy}", "app/views/sessions/new.html.#{template_strategy}" m.directory File.join("app", "views", "passwords") m.file "#{strategy}/passwords/new.html.#{template_strategy}", "app/views/passwords/new.html.#{template_strategy}" m.file "#{strategy}/passwords/edit.html.#{template_strategy}", "app/views/passwords/edit.html.#{template_strategy}" end end end
Version data entries
18 entries across 18 versions & 7 rubygems