Sha256: 0ec4166b519a84a7d17c97d6367de232a25dc682e68175720a84e494e61b1247
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
module ActiveAdmin module Views module Pages class Edit < Base def title I18n.t('active_admin.edit_model', :model => active_admin_config.resource_name) end def main_content config = self.form_config.dup config.delete(:block) config.reverse_merge!({ :url => resource_path(resource) }) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saulolso-activeadmin-0.2.2.1 | lib/active_admin/views/pages/edit.rb |
saulolso-activeadmin-0.2.2 | lib/active_admin/views/pages/edit.rb |