Sha256: c4dd42a7ddf79489714c615c24581e753d30635a2cdb4ef073f6251a98f3ccf0
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
module Rooler class Template < ActiveRecord::Base has_many :rules has_many :deliveries, as: :deliverable validates :name, :to, :subject, :body, presence: true def test_object object = nil rules.each do |rule| object = rule.send(:find_by_klass).first break if object end object ||= nil end def liquid_method_tree LiquidInspector.new(test_object.class).tree end end end
Version data entries
5 entries across 5 versions & 1 rubygems