Module: Lesli::SystemHelper
- Defined in:
- app/helpers/lesli/system_helper.rb
Instance Method Summary collapse
-
#is_lesli_onboarding? ⇒ Boolean
return true if the controller requested belongs to the administration area.
-
#lesli_controller ⇒ Object
return the engine code of the controller that is handling the http request.
-
#lesli_engine(property = nil) ⇒ Object
return the information about the current engine.
-
#lesli_instance_code ⇒ Object
retun the code of the instance builder engine example: lesli_cloud, deutsche_leibrenten, mitwerken_cloud.
Instance Method Details
#is_lesli_onboarding? ⇒ Boolean
return true if the controller requested belongs to the administration area
53 54 55 |
# File 'app/helpers/lesli/system_helper.rb', line 53 def is_lesli_onboarding? lesli_controller == "onboardings" end |
#lesli_controller ⇒ Object
return the engine code of the controller that is handling the http request
36 37 38 |
# File 'app/helpers/lesli/system_helper.rb', line 36 def lesli_controller controller_path.split("/")[0] end |