Module: CustomizeAdmin::ApplicationHelper
- Defined in:
- app/helpers/customize_admin/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
15 16 17 |
# File 'app/helpers/customize_admin/application_helper.rb', line 15 def attributes resource_class.attribute_names - %w(created_at updated_at) end |
#sortable(column, title = nil) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/customize_admin/application_helper.rb', line 3 def sortable( column, title = nil ) title ||= column.titleize column = column.to_s.downcase direction = ( column == sort_column && sort_direction == "asc" ) ? "desc" : "asc" link_to title, { :sort => column, :direction => direction } end |
#test ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/customize_admin/application_helper.rb', line 10 def test string_filter.each do |n| end end |