Class: Lesli::AboutsController

Inherits:
ApplicationLesliController show all
Defined in:
app/controllers/lesli/abouts_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#engine_path, #query

Instance Method Summary collapse

Methods included from CustomizationInterface

#set_customizer

Methods included from ResponderInterface

#respond_as_pagination, #respond_as_successful, #respond_with_action, #respond_with_error, #respond_with_http, #respond_with_not_found, #respond_with_pagination, #respond_with_successful, #respond_with_unauthorized

Methods included from RequesterInterface

#get_user_agent, #set_locale, #set_path, #set_requester

Methods inherited from ApplicationController

#initialize, #language

Constructor Details

This class inherits a constructor from Lesli::ApplicationController

Instance Method Details

#showObject

GET /status



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'app/controllers/lesli/abouts_controller.rb', line 48

def show
    respond_to do |format|
        format.html {}
        format.json { 

            # get installed engines
            @lesli_engines = LesliSystem.engines.map { |engine, engine_info|
                {
                    :name => engine_info[:name],
                    :code => engine_info[:code],
                    :path => engine_info[:path],
                    :build => engine_info[:build],
                    :version => engine_info[:version],
                    :description => engine_info[:description]
                }
            }
            respond_with_successful(@lesli_engines) 
        }
    end
end

#welcomeObject

def status

respond_with_successful({ :Lesli => "Ruby on Rails SaaS Development Framework." })

end



44
45
# File 'app/controllers/lesli/abouts_controller.rb', line 44

def welcome 
end