Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Breakpoint 1 at autocode.rb:52
  2. /opt/local/lib/ruby/gems/1.8/gems/autocode-1.0.0/lib/autocode.rb:52
  3. Kernel.load( path ) unless path.nil?
  4. (rdb:3) path
  5. "helpers/default.rb"
  6. (rdb:3) self
  7. Pages::Helpers
  8. (rdb:3) Kernel.load( path )
  9. true
  10. (rdb:3) const_defined?( :Default )
  11. false
  12. (rdb:3) constants
  13. []
  14. (rdb:3) File.read( path )
  15. "module Pages\n \n module Helpers\n \n module Default\n \n include Waves::Helpers::Default\n \n def model( name )\n Waves.application.models[ name ][ :db / domain / name ]\n end\n \n def show( model, name, assigns = {} )\n\t\t\t assigns[ model ] = find( model, name )\n\t\t\t view( model, :content, assigns ) if assigns[ model ]\n\t\t\tend\n\t\t\t\n\t\t\tdef story( name, assigns = {} )\n\t\t\t show( :story, name, assigns )\n\t\t\tend\n\t\t\t\n\t\t\tdef format( options )\n\t\t\t self << if ( options[:format] && \n\t\t\t options[:format] != 'html' && \n\t\t\t respond_to?( options[:format] ) )\n \t\t\t self.send options[:format], options[:content]\n \t\t\telse\n \t\t\t options[:content]\n \t\t\tend\n\t\t\tend\n\t\t\t\n\t\t\tdef site ; Pages::Models::Site[ :db / domain ].find( 'site' ) ; end\n\n\t\tend\n\tend\nend"
Add Comment
Please, Sign In to add comment