Sha256: 9c17cf0764c944091e14bcd86ed7ccb2cd0fa3ac3247d52ced4ce7efe0ee3abc
Contents?: true
Size: 611 Bytes
Versions: 21
Compression:
Stored size: 611 Bytes
Contents
require 'liquid' # A collection of modules and classes needed to enable Liquid templates with Rails Connector module RailsConnector::LiquidSupport # Helpers can be made available in Liquid templates by enabling them in the # app initialization like this: # # RailsConnector::LiquidSupport.enable_helpers( # :helper_a, # :helper_b # ) def self.enable_helpers(*helpers) helpers.each do |helper| GeneralHelperTag << helper end end # set to true if an error in a liquid template should lead to an 500 server error mattr_accessor :raise_template_errors end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
infopark_rails_connector-6.8.0.beta.200.621.4c8e1b0 | lib/rails_connector/liquid_support.rb |