Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. begin
  2. require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
  3. rescue LoadError
  4. - begin
  5. - require 'haml' # From gem
  6. - rescue LoadError => e
  7. - # gems:install may be run to install Haml with the skeleton plugin
  8. - # but not the gem itself installed.
  9. - # Don't die if this is the case.
  10. - raise e unless defined?(Rake) && Rake.application.top_level_tasks.include?(
  11. - end
  12. + require 'haml' # From gem
  13. end
  14.  
  15. -# Load Haml and Sass.
  16. -# Haml may be undefined if we're running gems:install.
  17. -Haml.init_rails(binding) if defined?(Haml)
  18. +# Load Haml and Sass
  19. :
Add Comment
Please, Sign In to add comment