Sha256: eab519ef4cd50d10548296f319098088c44339746f3c2a22344bebdd8030cfd7

Contents?: true

Size: 671 Bytes

Versions: 15

Compression:

Stored size: 671 Bytes

Contents

helpers = File.join(Pathname(__FILE__).dirname.expand_path, "helpers")
#require File.join(helpers, "content")
#require File.join(helpers, "asset_library")
#require File.join(helpers, "public")
#require File.join(helpers, "admin")
#require File.join(helpers, "form_builder")

module Gluttonberg
  # A whole heaping helping of helpers for both the administration back-end and
  # the public views.
  module Helpers
    # Mixes all the helpers into the GlobalHelpers module. Slighly messy, but
    # hey it works.
    def self.setup
      [AssetLibrary, Admin, Public, Content].each do |helper|
        ActionView::Helpers.send(:include, helper)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 lib/gluttonberg/helpers.rb
gluttonberg-core-2.6.3 lib/gluttonberg/helpers.rb
gluttonberg-core-2.6.2 lib/gluttonberg/helpers.rb
gluttonberg-core-2.6.1 lib/gluttonberg/helpers.rb
gluttonberg-core-2.6.0 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.9 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.8 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.7 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.6 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.5 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.4 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.3 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.2 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5.1 lib/gluttonberg/helpers.rb
gluttonberg-core-2.5 lib/gluttonberg/helpers.rb