Sha256: e92b851e42cc8a5417026bdafd8a08140a1c2d448e4ddeedf2f6255769326823

Contents?: true

Size: 393 Bytes

Versions: 14

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

require 'ditty/controllers/component'
require 'ditty/models/role'
require 'ditty/policies/role_policy'

module Ditty
  class Roles < Ditty::Component
    set model_class: Role

    def find_template(views, name, engine, &block)
      super(views, name, engine, &block) # Root
      super(::Ditty::App.view_folder, name, engine, &block) # Ditty
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ditty-0.7.2 lib/ditty/controllers/roles.rb
ditty-0.7.1 lib/ditty/controllers/roles.rb
ditty-0.7.0 lib/ditty/controllers/roles.rb
ditty-0.7.0.pre.rc1 lib/ditty/controllers/roles.rb
ditty-0.6.0 lib/ditty/controllers/roles.rb
ditty-0.4.1 lib/ditty/controllers/roles.rb
ditty-0.4.0 lib/ditty/controllers/roles.rb
ditty-0.3.3 lib/ditty/controllers/roles.rb
ditty-0.3.2 lib/ditty/controllers/roles.rb
ditty-0.3.1 lib/ditty/controllers/roles.rb
ditty-0.3.0 lib/ditty/controllers/roles.rb
ditty-0.2.2 lib/ditty/controllers/roles.rb
ditty-0.2.1 lib/ditty/controllers/roles.rb
ditty-0.2.0 lib/ditty/controllers/roles.rb