Sha256: 253d2ec33de678c9dd7a6af92d98d5e73c44a2e8a702eeaa0346b7893927bd9f
Contents?: true
Size: 528 Bytes
Versions: 5
Compression:
Stored size: 528 Bytes
Contents
module Pageflow ActiveAdmin.register Membership, :as => 'Membership' do menu false actions :new, :create, :destroy form :partial => 'form' controller do belongs_to :entry, :parent_class => Pageflow::Entry, :polymorphic => true belongs_to :user, :parent_class => User, :polymorphic => true helper Pageflow::Admin::MembershipsHelper helper Pageflow::Admin::FormHelper def permitted_params params.permit(:membership => [:user_id, :entry_id]) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems