Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load RailsAdmin actions when it is defined. #7

Merged
merged 1 commit into from Jun 30, 2015

Conversation

kieranklaassen
Copy link
Contributor

Fixes #6

This fixes an error to be thrown when loading without using Rails Admin:

singleton_aware_delete.rb:1:in<top (required)>': uninitialized constant RailsAdmin (NameError)`

This fixes an error to be thrown when loading without using Rails Admin:

`singleton_aware_delete.rb:1:in `<top (required)>': uninitialized constant RailsAdmin (NameError)`
@pelletencate
Copy link

+1. I always wanted to do singleton records in Active Record, but I never use RailsAdmin. I currently write all my own crappy implementations, but I can't wait for this to be released.

@reubenbrown
Copy link

@kieranklaassen Thanks for doing this!

@aksh0925
Copy link

@kieranklaassen thanks ... needed this.

zenangst added a commit that referenced this pull request Jun 30, 2015
Only load RailsAdmin actions when it is defined.
@zenangst zenangst merged commit 420a9fc into hyperoslo:master Jun 30, 2015
@kieranklaassen kieranklaassen deleted the patch-1 branch June 30, 2015 20:23
@zenangst
Copy link
Contributor

@kieranklaassen thanks, remind me to buy you a beer if you're ever in Oslo 🍻

@kieranklaassen
Copy link
Contributor Author

@zenangst Sounds good 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load RailsAdmin modules optionally
5 participants