Sha256: 239964cbe738946627ad9e3a7dba51723bffc1a7ff10bb81d1b10ff78cf1640b

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 Bytes

Contents

# Determines whether the given controller is the current controller
# 
# @param Name of the controller to check against
# @return [Boolean] True if the controller_name parameter matches the current controller nam
def current_tab?(controller_name)
  controller.controller_name == controller_name
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devisable-0.2.1 lib/generators/devisable/templates/partials/_application_current_tab.rb
devisable-0.2.0 lib/generators/devisable/templates/partials/_application_current_tab.rb
devisable-0.1.3 lib/generators/devisable/templates/partials/_application_current_tab.rb
devisable-0.1.2 lib/generators/devisable/templates/partials/_application_current_tab.rb
devisable-0.1.1 lib/generators/devisable/templates/partials/_application_current_tab.rb
devisable-0.1.0 lib/generators/devisable/templates/partials/_application_current_tab.rb