Sha256: 04d25eb4bfef17c5c4f09593f6a53ef0893c80f3d8a1ff13cbba04598102a623
Contents?: true
Size: 1.2 KB
Versions: 6
Compression:
Stored size: 1.2 KB
Contents
# Uncomment this if you reference any of your controllers in activate # require_dependency 'application' class <%= class_name %> < Spree::Extension version "1.0" description "Describe your extension here" url "http://yourwebsite.com/<%= file_name %>" # Please use <%= file_name %>/config/routes.rb instead for extension routes. # def self.require_gems(config) # config.gem "gemname-goes-here", :version => '1.2.3' # end def activate # Add your extension tab to the admin. # Requires that you have defined an admin controller: # app/controllers/admin/yourextension_controller # and that you mapped your admin in config/routes #Admin::BaseController.class_eval do # before_filter :add_yourextension_tab # # def add_yourextension_tab # # add_extension_admin_tab takes an array containing the same arguments expected # # by the tab helper method: # # [ :extension_name, { :label => "Your Extension", :route => "/some/non/standard/route" } ] # add_extension_admin_tab [ :yourextension ] # end #end # make your helper avaliable in all views # Spree::BaseController.class_eval do # helper YourHelper # end end end
Version data entries
6 entries across 6 versions & 2 rubygems