Sha256: 61232504e585e611db97b420bf4db70d77db0d9272b6de184a0f8264ed2bbeb5
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
require "nokogiri" module Tim class Template < Tim::Base include ActiveModel::Validations validates_with TemplateValidator has_many :base_images attr_accessible :xml attr_protected :id # Used in views to display the xml elements of this template def xml_elements ::Nokogiri::XML::Document.parse(xml).xpath("//template/*").to_xml end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tim-0.1.2 | app/models/tim/template.rb |
tim-0.1.1 | app/models/tim/template.rb |
tim-0.0.1 | app/models/tim/template.rb |