ref: master
plugins/open_graph/lib/open_graph_plugin.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 |
module OpenGraphPlugin extend Noosfero::Plugin::ParentMethods def self.plugin_name I18n.t 'open_graph_plugin.lib.plugin.name' end def self.plugin_description I18n.t 'open_graph_plugin.lib.plugin.description' end def self.context Thread.current[:open_graph_context] || :open_graph end def self.context= value Thread.current[:open_graph_context] = value end def self.debug? actor=nil !Rails.env.production? end end |