How do I change the default_actions/1
for all schemas at once?
#303
Labels
enhancement
New feature or request
default_actions/1
for all schemas at once?
#303
The
default_actions
for all schemas is [:new, :edit, :delete]. Is there a way to controldefault_actions
for all schemas without implementing eachdefault_actions/1
function?For example, I want to prevent all schemas from being added, modified, or deleted. Then I'll have to create an admin module (ex.
MyApp.Products.ProductAdmin
) for all schemas and override thedefault_actions/1
function as shown below. Is it possible to set this as a whole in one implementation rather than one?The text was updated successfully, but these errors were encountered: