class ConcertoScreencontent::Engine
Public Instance Methods
plugin_info(plugin_info_class)
click to toggle source
Define plugin information for the Concerto application to read. Do not modify @plugin_info outside of this static configuration block.
# 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