Sha256: 3b8c0f0a3098e2456260a0075c4dddd307631d302aff1ea61af1c2b0fa83126e
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
module AbAdmin module Views module Inputs class TokenInput < ::SimpleForm::Inputs::StringInput def input attr = options.delete(:assoc) || attribute_name.to_s.sub(/^token_|_id$/, '') token_data = object.token_data(attr.to_sym, options.extract!(:geo_order, :c, :sortable)) input_html_options.reverse_deep_merge!(token_data) super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.5.0 | lib/ab_admin/views/inputs/token_input.rb |
ab_admin-0.4.0 | lib/ab_admin/views/inputs/token_input.rb |