lib/generators/surveyor/templates/surveys/EXTENDING_SURVEYOR.md in surveyor-0.21.0 vs lib/generators/surveyor/templates/surveys/EXTENDING_SURVEYOR.md in surveyor-0.22.0

- old
+ new

@@ -27,9 +27,23 @@ end end == SurveyorHelper +The SurveyorHelper module can be customized just like the models: + + module SurveyorHelper + include Surveyor::Helpers::SurveyorHelperMethods + def rc_to_as(type_sym) + case type_sym.to_s + when /(integer|float)/ then :string + when /(datetime)/ then :string + when /^date$/ then :string + else type_sym + end + end + end + == Views Surveyor's views can be overwritten by simply creating views in app/views/surveyor == Layout