Skip to content

Commit

Permalink
Release 1.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Harrelson committed Nov 17, 2009
1 parent 0d14a7f commit a0772df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 5 additions & 3 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions guilded.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/guilded/rails/controller_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0772df

Please sign in to comment.