Class: SimpleBlogExtension::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spree_simple_blog.rb

Class Method Summary collapse

Class Method Details

.activateObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/spree_simple_blog.rb', line 4

def self.activate

  Spree::BaseController.class_eval do
    helper ArticlesHelper
  end

  AppConfiguration.class_eval do
    preference :disqus_id, :default => nil
    preference :blog_feed_url, :default => '/blog.xml'
  end

end