Guest User

Untitled

a guest
Apr 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. diff --git a/lib/foundations/simple.rb b/lib/foundations/simple.rb
  2. index dbb5509..21c1592 100644
  3. --- a/lib/foundations/simple.rb
  4. +++ b/lib/foundations/simple.rb
  5. @@ -6,10 +6,6 @@ module Waves
  6.  
  7. app.module_eval do
  8.  
  9. - Configurations.module_eval do
  10. - const_set( :Development, Class.new( Waves::Configurations::Default ) )
  11. - const_set( :Mapping, Module.new { |mod| Waves::Mapping } )
  12. - end
  13. extend Autocreate
  14. [ :Configurations, :Models, :Views, :Controllers, :Helpers ].each do | name |
  15. autocreate( name, Module.new ) do
  16. @@ -19,6 +15,11 @@ module Waves
  17. end
  18. end
  19. end
  20. + app::Configurations.module_eval do
  21. + const_set( :Development, Class.new( Waves::Configurations::Default ) )
  22. + const_set( :Mapping, Module.new { |mod| Waves::Mapping } )
  23. + end
  24. +
  25.  
  26. # accessor methods for modules and other key application objects ...
  27. class << self
Add Comment
Please, Sign In to add comment