Sha256: 72e160a60a469cd8e8505a1e680a5cb9b89a1707113288fb14e08e1982b6727f

Contents?: true

Size: 344 Bytes

Versions: 19

Compression:

Stored size: 344 Bytes

Contents

module Hobo
  module ViewHintsValidationsInterceptor
    def human_attribute_name(attribute_key_name, opt={})
      view_hints_field_names = self.view_hints.field_names
      attribute_key_name!="" && view_hints_field_names.include?(attribute_key_name.to_sym) ?
      view_hints_field_names[attribute_key_name.to_sym] : super
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hobo-1.1.0 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.0.3 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.1.0.pre4 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.1.0.pre3 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.1.0.pre2 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.1.0.pre0 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.0.2 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.0.1 lib/active_record/viewhints_validations_interceptor.rb
hobo-1.0.0 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.106 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.105 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.104 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.103 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.102 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.101 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.100 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.9.0 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.8.10 lib/active_record/viewhints_validations_interceptor.rb
hobo-0.8.9 lib/active_record/viewhints_validations_interceptor.rb