Sha256: 4e46f6ae637f8ac89195d8655bde20ae762d4b26b8dd6c3f4455962ab7ef0c96
Contents?: true
Size: 529 Bytes
Versions: 17
Compression:
Stored size: 529 Bytes
Contents
class LockableBookForm < BookForm def default_config super.merge(:mode => :lockable) end def configuration sup = super sup.merge( :items => sup[:items].reject{ |i| i.is_a?(Hash) && i[:name] == :author__first_name } + [{ :xtype => :compositefield, :defaults => {:flex => 1}, :field_label => "Author name (first, last)", :items => [{:name => :author__first_name, :nested_attribute => true}, {:name => :author__last_name, :nested_attribute => true}] }] ) end end
Version data entries
17 entries across 17 versions & 2 rubygems