Class: ConcertoScreencontent::Engine

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

Instance Method Summary collapse

Instance Method Details

#plugin_info(plugin_info_class) ⇒ Object

Define plugin information for the Concerto application to read. Do not modify @plugin_info outside of this static configuration block.



8
9
10
11
12
13
14
15
16
# File 'lib/concerto_screencontent/engine.rb', line 8

def plugin_info(plugin_info_class)
  @plugin_info ||= plugin_info_class.new do
    # add_controller_hook 'ScreensController', :show, :before do
    #   @post = MyPlugin::Post.find_by_screen_id(@screen.id)
    # end

    add_view_hook 'ScreensController', :screen_details2, partial: 'concerto_screencontent/screens/content'
  end # plugin_info intializer
end