Sha256: a308116d4dbd86a5c030e2e33b2a941bee4e28e07174bcfe050055d4240cd381

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

module SimpleHelpers
  module ActionController
    def simple_helper(helpers_array)
      helpers_array.each do |name|
        name = name.to_s.underscore

        # method
        SimpleHelpers::Support.create_method(self, name)

        # helper
        ::ActionController::Base.helper_method name
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_helpers-2.0.1 lib/simple_helpers/action_controller.rb
simple_helpers-2.0.0 lib/simple_helpers/action_controller.rb
simple_helpers-2.0.0.beta lib/simple_helpers/action_controller.rb