Sha256: 762490d27a81948ff68cdf6a8538705c86833942663cb92890a35d5f06fd77e0

Contents?: true

Size: 804 Bytes

Versions: 4

Compression:

Stored size: 804 Bytes

Contents

require 'spud_core'
module Spud
  module Blog
    class Engine < Rails::Engine
      engine_name :spud_blog
      initializer :admin do
        Spud::Core.config.admin_applications += [{
          :name => 'Posts', 
          :thumbnail => 'spud/admin/posts_thumb.png',
          :url => '/spud/admin/posts',
          :order => 1
        },{
          :name => 'Post Categories',
          :thumbnail => 'spud/admin/posts_thumb.png',
          :url => '/spud/admin/post_categories',
          :order => 2
        }]
      end
      initializer :assets do
        Rails.application.config.assets.precompile += ['spud/admin/posts.css']
      end
      initializer :associations do
        SpudUser.class_eval do
          has_many :posts, :class_name => 'SpudPost'
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spud_blog-0.1.3 lib/spud_blog/engine.rb
spud_blog-0.1.2 lib/spud_blog/engine.rb
spud_blog-0.1.1 lib/spud_blog/engine.rb
spud_blog-0.1.0 lib/spud_blog/engine.rb