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.20.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.7 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.6 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.5 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.4 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.3 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.2 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.1 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.19.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.18.2 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.18.1 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.18.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.17.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.16.1 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.16.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.15.0 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.14.5 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.14.4 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.14.3 generators/extend_surveyor/extend_surveyor_generator.rb
surveyor-0.14.2 generators/extend_surveyor/extend_surveyor_generator.rb