ref: master
plugins/metadata/lib/metadata_plugin/controllers.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
class MetadataPlugin::Controllers def manage_products :@product end def content_viewer lambda do if profile and @page and profile.home_page_id == @page.id @profile elsif @page.respond_to? :encapsulated_instance @page.encapsulated_instance else @page end end end def profile :@profile end def home :@environment end end |