Sha256: 978670dab07b9eac44870799a0d347fbd66fd2dba17b928c10cf60feda48a0a0

Contents?: true

Size: 487 Bytes

Versions: 11

Compression:

Stored size: 487 Bytes

Contents

module CustomizeAdmin
  module ApplicationHelper
    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

    def test
      string_filter.each do |n|

      end
    end
    def attributes
      resource_class.attribute_names - %w(created_at updated_at)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
customize_admin-0.0.13 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.12 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.11 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.10 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.9 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.8 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.7 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.6 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.5 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.4 app/helpers/customize_admin/application_helper.rb
customize_admin-0.0.3 app/helpers/customize_admin/application_helper.rb