Sha256: 48bcb697b46193974bb73df66d9d3f86b4912ff4dbaf5282bc9823eb1198e2e4

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

module ApplicationHelper
  include Loco::Helpers

  def admin_panel?
    controller_path.split('/').first == 'admin'
  end

  def user_panel?
    controller_path.split('/').first == 'user'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/app/helpers/application_helper.rb
loco-rails-1.0.1 test/dummy/app/helpers/application_helper.rb
loco-rails-1.0.0 test/dummy/app/helpers/application_helper.rb