Permalink
Browse files

Allow assigning Assets

  • Loading branch information...
1 parent b82571a commit ffad0ec2f2eb7a801a73fd028849fd665b99a126 @namelessjon committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sinatra/simple_assets.rb
@@ -17,8 +17,8 @@ def javascript(bundle)
end
end
- def assets(&block)
- @assets ||= Assets.new(self.public_folder)
+ def assets(assets = nil, &block)
+ @assets ||= (assets ? assets : Assets.new(self.public_folder))
@assets.configure(&block)
end

0 comments on commit ffad0ec

Please sign in to comment.