Sha256: 9f1f86b8c71cfa0bf57c9464247ce2b9d77d998bf1ea2fe62438e70a3b99f7f2
Contents?: true
Size: 533 Bytes
Versions: 8
Compression:
Stored size: 533 Bytes
Contents
require "locomotive/mounter" require 'liquid' require 'locomotive/builder/liquid/drops/base' %w{. drops tags filters}.each do |dir| Dir[File.join(File.dirname(__FILE__), 'liquid', dir, '*.rb')].each { |lib| require lib } end # add to_liquid methods to main models from the mounter %w{site page content_entry}.each do |name| klass = "Locomotive::Mounter::Models::#{name.classify}".constantize klass.class_eval <<-EOV def to_liquid ::Locomotive::Builder::Liquid::Drops::#{name.classify}.new(self) end EOV end
Version data entries
8 entries across 8 versions & 1 rubygems