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

Version Path
qrush-clearance-0.7.0 generators/clearance_views/clearance_views_generator.rb
thoughtbot-clearance-0.7.0 generators/clearance_views/clearance_views_generator.rb
thoughtbot-clearance-0.8.0 generators/clearance_views/clearance_views_generator.rb
thoughtbot-clearance-0.8.1 generators/clearance_views/clearance_views_generator.rb
thoughtbot-clearance-0.8.2 generators/clearance_views/clearance_views_generator.rb
tonkapark-clearance-0.7.0.1 generators/clearance_views/clearance_views_generator.rb
tonkapark-clearance-0.7.0 generators/clearance_views/clearance_views_generator.rb
janova-clearance-0.8.8 generators/clearance_views/clearance_views_generator.rb
forgetful-clearance-0.8.11 generators/clearance_views/clearance_views_generator.rb
forgetful-clearance-0.8.10 generators/clearance_views/clearance_views_generator.rb
benaldred-clearance-0.8.8 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.8 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.7 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.6 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.5 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.4 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.3 generators/clearance_views/clearance_views_generator.rb
clearance-0.8.2 generators/clearance_views/clearance_views_generator.rb