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

Version Path
ccls-surveyor-1.0.0 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
jakewendt-surveyor-0.11.3 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.14.4 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.14.3 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.14.2 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.14.1 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.14.0 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.12.1 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.11.0 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
surveyor-0.10.0 generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb