Module: RailsTasks

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails_tasks.rb,
lib/rails_tasks/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#render(options = {}, locals = {}, &block) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/rails_tasks.rb', line 28

def render(options = {}, locals = {}, &block)
  if options.is_a?(Hash) && options.has_key?(:controller)
    controller._handle_render_options(options).html_safe || super
  else
    super
  end
end