mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 09:40:13 +01:00
17 lines
No EOL
325 B
Ruby
17 lines
No EOL
325 B
Ruby
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 |