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

#225 Apipie not supporting documentation bootstrapping for controllers outside /app #227

Merged
merged 1 commit into from
Mar 18, 2014

Conversation

clamoris
Copy link
Contributor

#225 Apipie not supporting documentation bootstrapping for controllers outside /app

Plus:
Some refactoring

@clamoris
Copy link
Contributor Author

@iNecas
Copy link
Member

iNecas commented Mar 18, 2014

Yes, it's just extracting the value into a variable, not comparing on equality

@@ -30,6 +30,12 @@
# for reloading to work properly you need to specify where your api controllers are (like in Dir.glob):
config.api_controllers_matcher = File.join(Rails.root, "app", "controllers", "**","*.rb")

# specify if your api controllers located outside of /app/controllers folder. Used for bootstrapping.
config.base_controllers_path = File.join(Rails.root, "app", "controllers")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the api_controllers_matcher could not be used for this setting. Is there any reason we need special setting for that?

@iNecas
Copy link
Member

iNecas commented Mar 18, 2014

Thanks for the patch, one comment in the code

@clamoris
Copy link
Contributor Author

Fixed. Now application search generated controller name in array from api_controllers_matcher

@iNecas
Copy link
Member

iNecas commented Mar 18, 2014

Merging, thanks!

iNecas added a commit that referenced this pull request Mar 18, 2014
#225 Apipie not supporting documentation bootstrapping for controllers outside /app
@iNecas iNecas merged commit 6fd8902 into Apipie:master Mar 18, 2014
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.

2 participants