Skip to content
Browse files

Release 1.0.3.

  • Loading branch information...
1 parent 0d14a7f commit a0772df4910d9dca9ff31bc233a69016b2618b00 @midas committed
Showing with 12 additions and 4 deletions.
  1. +5 −0 History.txt
  2. +5 −3 README.rdoc
  3. +1 −0 guilded.gemspec
  4. +1 −1 lib/guilded/rails/controller_actions.rb
View
5 History.txt
@@ -1,3 +1,8 @@
+= 1.0.3 2009-11-16
+
+* The reset_guilded filter is now automatically set up in ActionController.
+
+
= 1.0.2 2009-11-13
* Fixed issue with human_attribute_name override not accepting an options hash. Was breaking remarkable gem.
View
8 README.rdoc
@@ -149,8 +149,8 @@ do not have to include it in every template):
<%= g_apply_behavior %>
-You also must reset the Guilded singleton that manages everything after each rendering. The best way to do this is a before
-filter in your application controller:
+A before filter is automatically set up in your application controller to reset the Guilded singleton that manages
+everything after each rendering. The code looks like this:
before_filter :reset_guilded
@@ -162,7 +162,9 @@ filter in your application controller:
Guilded::Guilder.instance.reset!
end
-Then install one or more Guilded components and you are on your way!
+You may want to opt out of this before filter in actions that do not use a layout for efficiency.
+
+Next, install one or more Guilded components and you are on your way!
== LICENSE
View
1 guilded.gemspec
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
"lib/guilded/rails.rb",
"lib/guilded/rails/active_record/human_attribute_hint.rb",
"lib/guilded/rails/active_record/human_attribute_override.rb",
+ "lib/guilded/rails/controller_actions.rb",
"lib/guilded/rails/helpers.rb",
"lib/guilded/rails/inactive_record/human_attribute_hint.rb",
"lib/guilded/rails/view_helpers.rb",
View
2 lib/guilded/rails/controller_actions.rb
@@ -6,7 +6,7 @@ def self.included( base )
base.instance_eval do
before_filter :reset_guilded
end
- base.include( InstanceMethods )
+ base.send( :include, InstanceMethods )
end
module InstanceMethods

0 comments on commit a0772df

Please sign in to comment.
Something went wrong with that request. Please try again.