lib/shakespeare/helpers.rb in shakespeare-0.1.0 vs lib/shakespeare/helpers.rb in shakespeare-0.1.1
- old
+ new
@@ -1,16 +1,16 @@
-module Shakespeare
- module Helpers
- def self.included(base)
- base.send(:helper_method, :page_content) if base.respond_to?(:helper_method)
- end
-
- def page_content
- @page_content = Page.find_by_url("#{controller_name}/#{action_name}")
- end
-
- def protect_in_production
- return true unless Shakespeare.env == 'production'
- render :text => 'Unauthorized' unless Shakespeare::Settings.allow_anonymous
- end
- end
+module Shakespeare
+ module Helpers
+ def self.included(base)
+ base.send(:helper_method, :page_content) if base.respond_to?(:helper_method)
+ end
+
+ def page_content
+ @page_content = Page.find_by_url("#{controller_name}/#{action_name}")
+ end
+
+ def protect_in_production
+ return true unless Shakespeare.env == 'production'
+ render :text => 'Unauthorized' unless Shakespeare::Settings.allow_anonymous
+ end
+ end
end
\ No newline at end of file