lib/enjoy/admin/page_blockset.rb in enjoy_cms-0.3.2.1 vs lib/enjoy/admin/page_blockset.rb in enjoy_cms-0.3.3
- old
+ new
@@ -9,20 +9,10 @@
field :text_slug
field :name
field :blocks
- fields.each_pair do |name, type|
- if type.nil?
- field name
- else
- if type.is_a?(Array)
- field name, type[0], &type[1]
- else
- field name, type
- end
- end
- end
+ Enjoy::RailsAdminGroupPatch::enjoy_cms_group(self, fields)
# field :blocks do
# read_only true
# help 'Список блоков'
#