class Rails_view
Constants
- VERSION
Public Class Methods
controller(&block)
click to toggle source
# File lib/rails_view.rb, line 19 def View.controller(&block) controller = ::Current.controller ? ::Current.controller.dup : ::Current.mock_controller block ? controller.instance_eval(&block) : controller end
dependencies()
click to toggle source
# File lib/rails_view/_lib.rb, line 8 def View.dependencies { 'rails_current' => [ 'rails_current' , '~> 2' ] } end
render(*args)
click to toggle source
# File lib/rails_view.rb, line 24 def View.render(*args) options = args.extract_options!.to_options! args.push(options) unless options.has_key?(:layout) options[:layout] = false end Array(View.controller{ render(*args) }).join.html_safe end
version()
click to toggle source
# File lib/rails_view/_lib.rb, line 4 def View.version View::VERSION end