Sha256: 7357a526a58cc1d28f30ddbde24c36530ec4ef30d8bbfc8d0898660b93665634

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

require 'spree_core'
require 'spree_auth'
require 'meta_search'

require 'spree_essential_press/inflection'
  
module SpreeEssentialPress
  
  def self.tab
    [:press, { :route => :admin_press_index }]
  end
  
  def self.sub_tab
    [:press, { :route => :admin_press_index, :label => 'admin.subnav.press', :match_path => '/press' }]
  end
  
  def self.independent?
    return true unless defined?(SpreeEssentials)
    !SpreeEssentials.respond_to?(:register)
  end
  
  class Engine < Rails::Engine
    config.autoload_paths += %W(#{config.root}/lib)    
  end
  
end

if SpreeEssentialPress.independent?
  require 'spree_essential_press/custom_hooks'
else 
  SpreeEssentials.register :press, SpreeEssentialPress 
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_essential_press-0.1.0.pre3 lib/spree_essential_press.rb
spree_essential_press-0.1.0.pre2 lib/spree_essential_press.rb