Sha256: 7f9e75c6dfe253930fbe8671d863ded063f098ff87adf10e99ca1742ac2b8578
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 Bytes
Contents
require 'tb_core' require 'tb_liquid' module Spud module Inquiries class Engine < Rails::Engine engine_name :spud_inquiries initializer :admin do Spud::Core.configure do |config| config.admin_applications += [{:name => "Inquiries",:thumbnail => "spud/admin/contacts_thumb.png",:url => "/spud/admin/inquiries",:order => 88}] if Spud::Inquiries.enable_sitemap == true config.sitemap_urls += [:spud_inquiries_sitemap_url] end end end initializer :liquid_form do Spud::Inquiries::FormActionView.class_eval do include Spud::Inquiries::Engine.routes.url_helpers include Spud::Inquiries::Engine.routes.mounted_helpers include ContactsHelper end Liquid::Template.register_tag('inquiry', Spud::Inquiries::InquiryForm) if defined?(Liquid::Template) end initializer :assets do Spud::Core.append_admin_javascripts('admin/inquiries/application') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tb_inquiries-1.0.1 | lib/spud_inquiries/engine.rb |