Sha256: 3f0810f3622617578395e32bc8a953eaa14a9675ab0e1b5f16729e0114ab1a4f
Contents?: true
Size: 526 Bytes
Versions: 10
Compression:
Stored size: 526 Bytes
Contents
module SurveyorHelperExtensions def self.included(base) # :nodoc: base.send(:include, InstanceMethods) base.class_eval do # Same as typing in the module # alias_method_chain :question_number_helper, :sauce end end module InstanceMethods # def question_number_helper_with_sauce(number) # question_number_helper_without_sauce(number) + "Extra sauce" # end end end # Add "surveyor_helper" to config['extend'] array in config/initializers/surveyor.rb to activate these extensions
Version data entries
10 entries across 10 versions & 3 rubygems