Sha256: 080b7699afdd5f92de2584c6e4073227d300becc72729af44074970e90199e16

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

require "simplec/engine"
require "simplec/embedded_image_actions"
require 'simplec/action_controller/extensions'
require 'simplec/action_view/helper'
require "simplec/page_action_helpers"


# Configuration details will go here.
#
# @!visibility public
module Simplec

  # Get application view helpers.
  #
  # @example append helper
  #   Simplec.helpers << ::ApplicationHelper
  #
  # @return [Array]
  #   of view helpers
  def self.helpers
    @helpers ||= Array.new
  end

  # Set the helpers to be included.
  #
  # @example set a single helper
  #   Simplec.helpers = ::ApplicationHelper
  #
  # @example append helpers
  #   Simplec.helpers += [::ApplicationHelper]
  #
  # @param helpers [Array, Class]
  #   either a single helper or an array of helpers
  def self.helpers=(helpers)
    @helpers = Array(helpers)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplec-0.5.0 lib/simplec.rb