spec/support/plugins/my_plugin.rb in locomotive_plugins-1.0.0.beta9 vs spec/support/plugins/my_plugin.rb in locomotive_plugins-1.0.0.beta10

- old
+ new

@@ -13,16 +13,22 @@ end class MyTag < ::Liquid::Tag end - before_filter :my_method1 - after_filter :my_method2 - around_filter :my_method3 + before_page_render :my_method1 + after_page_render :my_method2 + around_page_render :my_method3 - attr_accessor :custom_attribute + before_rack_app_request :my_method1 + after_rack_app_request :my_method2 + around_rack_app_request :my_method3 - def initialize_plugin + class << self + attr_accessor :custom_attribute + end + + def self.plugin_loaded self.custom_attribute = 'Value' end def to_liquid MyDrop.new