Sha256: 8e935f805132b04bd2e69a096eb4c1703e37ccf209237b9fe40a55b6b0600032
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
module ActiveAdmin module Views module Pages class New < Base def title "New #{active_admin_config.resource_name}" end def main_content config = self.form_config.dup config.delete(:block) config.reverse_merge!({ :url => collection_path }) if form_config[:partial] render(form_config[:partial]) else active_admin_form_for(resource, config, &form_config[:block]) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-0.2.2 | lib/active_admin/views/pages/new.rb |
activeadmin-0.2.1 | lib/active_admin/views/pages/new.rb |
activeadmin-0.2.0 | lib/active_admin/views/pages/new.rb |