Skip to content

Commit

Permalink
Removes the before_app_loads constraing on loading merb_helpers. Ther…
Browse files Browse the repository at this point in the history
…e's no need for this
  • Loading branch information
Daniel Neighman committed Jun 1, 2008
1 parent f465ae9 commit 0200553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions merb_helpers/lib/merb_helpers.rb
Expand Up @@ -36,6 +36,4 @@ def self.load_helpers(helpers = @@helpers_files)

end

Merb::BootLoader.before_app_loads do
Merb::Helpers.load
end
Merb::Helpers.load
2 changes: 1 addition & 1 deletion merb_helpers/spec/merb_helpers_config_spec.rb
Expand Up @@ -32,7 +32,7 @@
end

it "should load all helpers by default" do
Merb::Plugins.should_receive(:config).and_return({})
Merb::Plugins.should_receive(:config).any_number_of_times.and_return({})
reload_merb_helpers
defined?(Merb::Helpers).should_not be_nil
defined?(Merb::Helpers::DateAndTime).should_not be_nil
Expand Down

0 comments on commit 0200553

Please sign in to comment.