app/admin/active_admin/views_helper.rb in activeadmin-selleo-cms-0.0.14 vs app/admin/active_admin/views_helper.rb in activeadmin-selleo-cms-0.0.16
- old
+ new
@@ -1,11 +1,11 @@
-def link_to_page(page)
- if page.is_link_url
- page.link_url
- else
- "/#{I18n.locale}/#{page.slug}"
- end
-end
-
def set_admin_locale
I18n.locale = :en
+end
+
+def determine_field_type(val)
+ if [TrueClass, FalseClass].include? val.class
+ :boolean
+ else
+ :string
+ end
end
\ No newline at end of file