Guest User

Untitled

a guest
May 27th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. module MerbPlumeThemeSilver
  2.  
  3. # All Slice code is expected to be namespaced inside this module.
  4.  
  5. module Application
  6. def self.included(base)
  7. base.controller_for_slice
  8. end
  9.  
  10. private
  11. # Construct a path relative to the public directory
  12. def public_path_for(type, *segments)
  13. ::MerbPlumeThemeSilver.public_path_for(type, *segments)
  14. end
  15.  
  16. # Construct an app-level path.
  17. def app_path_for(type, *segments)
  18. ::MerbPlumeThemeSilver.app_path_for(type, *segments)
  19. end
  20.  
  21. # Construct a slice-level path
  22. def slice_path_for(type, *segments)
  23. ::MerbPlumeThemeSilver.slice_path_for(type, *segments)
  24. end
  25.  
  26. end
  27.  
  28. class MainSilver < MerbPlumeThemeBase::Main
  29. include Application
  30.  
  31. def index
  32. render
  33. end
  34. end
  35. end
Add Comment
Please, Sign In to add comment