Top Level Namespace
Defined Under Namespace
Modules: ActiveadminSelleoCms, PagesHelper
Classes: CmsController, FormAnswerAttachmentsController, FormAnswersController, FormsController, LocalesController, PagesController, SearchesController, Translation
Instance Method Summary
collapse
Instance Method Details
#determine_field_type(val) ⇒ Object
5
6
7
8
9
10
11
|
# File 'app/admin/active_admin/views_helper.rb', line 5
def determine_field_type(val)
if [TrueClass, FalseClass].include? val.class
:boolean
else
:string
end
end
|
#general_options(page) ⇒ Object
13
14
15
|
# File 'app/admin/active_admin/views_helper.rb', line 13
def general_options(page)
"General options <i class='fold #{'folded' if page.layout_name}'>Hide</i>"
end
|
#set_admin_locale ⇒ Object
1
2
3
|
# File 'app/admin/active_admin/views_helper.rb', line 1
def set_admin_locale
I18n.locale = :en
end
|