Sha256: d20e7a22064e02a773ba4ed3ca5820a5b9f8de6f51dd19bdb8d3fa03e60475bc
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require "tb_core" require "tb_commerce/configuration" require "jbuilder" require "paperclip" require "stripe" require 'countries' require 'country_select' module TbCommerce class Engine < ::Rails::Engine # isolate_namespace TbCommerce engine_name 'tb_commerce' config.autoload_paths += Dir["#{config.root}/lib/**/"] initializer 'tb_commerce.cart_helpers' do |config| ActiveSupport.on_load :spud_application_controller do Spud::ApplicationController.send :include, TbCommerce::ControllerHelpers end end initializer 'tb_commerce.admin', :before => 'tb_core.admin' do |config| Spud::Core.admin_applications += [ #{:name => 'Products', :url => '/admin/products' }, {:name => 'Orders', :thumbnail => "tb_commerce/orders.png", :url => '/admin/orders', :badge => ->(user){ TbCommerce::Order.where(:status => 'placed').count }}, {:name => 'Transactions', :thumbnail => "tb_commerce/transactions.png", :url => '/admin/transactions'} ] end config.generators do |g| g.test_framework :rspec, :fixture => false g.fixture_replacement :factory_girl, :dir => 'spec/factories' g.assets false g.helper true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tb_commerce-0.0.4 | lib/tb_commerce/engine.rb |