Sha256: 67932434373b652d65f5f22cde9c29278a3bdc11a944048db70afc528c4b5ed5

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

module Enlightenment
  class ApplicationController < ActionController::Base
    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.2 app/controllers/enlightenment/application_controller.rb
enlightenment-0.0.1.pre.1 app/controllers/enlightenment/application_controller.rb