Skip to content

Commit

Permalink
formats
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Dec 17, 2011
1 parent 9d5c575 commit 56df995
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/kaminari.rb
@@ -1,5 +1,4 @@
module Kaminari

def self.frameworks
frameworks = []
case
Expand All @@ -15,14 +14,14 @@ def self.load_framework!
begin
require framework
rescue NameError => e
raise "can't load framework #{framework.inspect}. Have you added it to Gemfile?"
raise "Failed to load framework #{framework.inspect}. Have you added it to Gemfile?"
end
end
end

def self.show_warning
$stderr.puts <<-EOC
warning: no framework is detected.
warning: no framework detected.
would you check out if your Gemfile appropriately configured?
---- e.g. ----
when Rails:
Expand Down Expand Up @@ -69,7 +68,6 @@ def self.rails?
def self.sinatra?
defined?(::Sinatra)
end

end

Kaminari.load!

0 comments on commit 56df995

Please sign in to comment.