Guest User

Untitled

a guest
Feb 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. diff --git a/lib/jpmobile.rb b/lib/jpmobile.rb
  2. index 809778f..0964c8a 100644
  3. --- a/lib/jpmobile.rb
  4. +++ b/lib/jpmobile.rb
  5. @@ -27,16 +27,17 @@ module Jpmobile
  6. end
  7. end
  8.  
  9. -%w(
  10. - jpmobile/version.rb
  11. - jpmobile/mobile/abstract_mobile.rb
  12. - jpmobile/mobile/display.rb
  13. -).each do |lib|
  14. - require File.expand_path(File.join(File.dirname(__FILE__), lib))
  15. -end
  16. -
  17. if defined? RAILS_ENV
  18. Dir[File.expand_path(File.join(File.dirname(__FILE__), 'jpmobile/*.rb'))].sort.each { |lib|
  19. require lib
  20. }
  21. +else
  22. +
  23. + %w(
  24. + jpmobile/version.rb
  25. + jpmobile/mobile/abstract_mobile.rb
  26. + jpmobile/mobile/display.rb
  27. + ).each do |lib|
  28. + require File.expand_path(File.join(File.dirname(__FILE__), lib))
  29. + end
  30. end
Add Comment
Please, Sign In to add comment