Sha256: 5eb9f27200e3747b8c7e15bfb61523abed0a6a3e3eab91fd43911461e72495bc

Contents?: true

Size: 382 Bytes

Versions: 24

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true
require 'csv'

class <%= class_name %>Controller < ApplicationController
  include Pagy::Backend
  layout '<%= class_name.underscore %>'
  before_action :authenticate_<%= class_name.underscore %>!
  authorize :user, through: :current_<%= class_name.underscore %>

  private

  def namespace
    @namespace ||= Bo::<%= class_name.pluralize %>
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tybo-0.4.0 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.26 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.24 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.23 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.22 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.21 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.20 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.19 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.18 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.17 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.16 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.15 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.14 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.13 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.12 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.11 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.10 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.9 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.8 lib/generators/bo_namespace/templates/admin_controller.rb
tybo-0.3.7 lib/generators/bo_namespace/templates/admin_controller.rb