Sha256: a07e9a72d8ff4d0b03e964e497a5c3db65576f493c6431d60db9de9a6da4ba6f

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module Enlightenment
  class ApplicationController < ::ApplicationController
    def show(options = {})
      render(path, options)
    end

    private

      def path
        @_path ||= "#{controller_name}/#{params[:name].to_s.downcase}"
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enlightenment-0.0.1.pre.4 app/controllers/enlightenment/application_controller.rb
enlightenment-0.0.1.pre.3 app/controllers/enlightenment/application_controller.rb