module Simplec

Configuration details will go here.

@!visibility public

Constants

VERSION

Public Class Methods

helpers() click to toggle source

Get application view helpers.

@note

A copy of ApplicationHelper has been removed from the module tree but is still active!

If that occurs it is because the Module has been changed but app needs to
be restarted because they are loaded at initialize. require_dependency
might be able to fix it.

@example append helper

Simplec.helpers << ::ApplicationHelper

@return [Array]

of view helpers
# File lib/simplec.rb, line 28
def self.helpers
  @helpers ||= Array.new
end
helpers=(helpers) click to toggle source

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
# File lib/simplec.rb, line 42
def self.helpers=(helpers)
  @helpers = Array(helpers)
end
load_pages() click to toggle source
# File lib/simplec/engine.rb, line 17
def self.load_pages
  Dir["#{Rails.root}/app/models/page/*.rb"].
    each {|file| require_dependency file }
end