Sha256: 155e361e6b190783a673b3f4f8e7b5d559e0951ae8ddef68839acb85f8b43d13

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

module CartoonistAnnouncements
  class Engine < ::Rails::Engine
    Cartoonist::Admin::Tab.add :announcements, :url => "/admin/announcements"
    Cartoonist::Asset.include_js "cartoonist-announcements.js"
    Cartoonist::Migration.add_for self
    Cartoonist::Backup.for :announcements do
      Announcement.order(:id)
    end
    Cartoonist::Routes.add do
      resources :announcements

      namespace :admin do
        resources :announcements
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cartoonist-announcements-0.0.12 lib/cartoonist-announcements/engine.rb
cartoonist-announcements-0.0.11 lib/cartoonist-announcements/engine.rb
cartoonist-announcements-0.0.10 lib/cartoonist-announcements/engine.rb