Sha256: 21e44cbea6218016d3c82598e8f5b705a6181f63886ea82dfc0e98fe21bc8931

Contents?: true

Size: 750 Bytes

Versions: 23

Compression:

Stored size: 750 Bytes

Contents

class ExtendSurveyorGenerator < Rails::Generator::Base
  def manifest
    record do |m|
      
      # Copy README to your app
      m.file "EXTENDING_SURVEYOR", "surveys/EXTENDING_SURVEYOR"
          
      # Custom layout
      m.directory "app/views/layouts"
      m.file "extensions/surveyor_custom.html.erb", "app/views/layouts/surveyor_custom.html.erb"
      
      # Model, helper, and controller extensions
      # http://www.redmine.org/boards/3/topics/4095#message-4136
      # http://blog.mattwynne.net/2009/07/11/rails-tip-use-polymorphism-to-extend-your-controllers-at-runtime/
      m.file "extensions/surveyor_controller.rb", "app/controllers/surveyor_controller.rb"
      
      m.readme "EXTENDING_SURVEYOR"
      
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
surveyor-0.14.1 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.14.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.13.0 generators/extend_surveyor/extend_surveyor_generator.rb