Sha256: c44150131270dcd3b05c13b559d8cd919d21392ea47eeb81a19add0604d9e342

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

module ActionView::Helpers
  def self.current_controller=(controller)
    @@current_controller = controller
  end
  
  def self.current_controller
    @@current_controller
  end
end

class ActionView::Helpers::InstanceTag
  include UJS::Helpers
  
  def current_controller
    ActionView::Helpers.current_controller
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
compages-0.4.0 vendor/plugins/unobtrusive_javascript/lib/actionview_helpers_patches.rb