Sha256: 6c667c2649f359c1233fd6c2adf1e0ee7ee79098953398113e17b552d1a1948f
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
class AbstractAdapter < ActiveRecord::Base self.abstract_class = true class << self def human_attribute_name(attr, options = {}) # The default formatting of validation errors sucks, this helps a little syntatically: super.titleize+":" end def ransackable_attributes(auth_object = nil) @ransackable_attributes ||= column_names + _ransackers.keys end def ransackable_associations(auth_object = nil) @ransackable_associations ||= reflect_on_all_associations.map { |a| a.name.to_s } + _ransackers.keys end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
introspective_admin-0.9.0 | spec/dummy/app/models/abstract_adapter.rb |