Created
October 30, 2014 05:37
-
-
Save kaleemullah/f95a6eee2d6a2e1f5c91 to your computer and use it in GitHub Desktop.
Overwriting ActiveAdmin update method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register MyModel do | |
.... | |
controller do | |
def update | |
model = MyModel.find(params[:id]) | |
.... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment