We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Michael!
Thanks a lot for your crm! It is great!
I want to participate in the development and suggest using configatron gem for handling configuration variables (https://github.com/markbates/configatron).
The main reason is ability to override them in plugins.
When I override ffcrm constants, I get warnings "already initialized constant" at the moment.
For example I want to add ability to comment on models.
In CommentsController you set: COMMENTABLE = %w(account_id campaign_id contact_id lead_id opportunity_id task_id).freeze
And then I want to override it in my plugin: CommentsController::COMMENTABLE = CommentsController::COMMENTABLE + ['ClassB', 'ClassA']
Which brings up the error I mentioned above.
Another advantage is that it is faster to get settings from configatron, rather than getting them from DB.
I want to prepare a pull request for you with updated settings functionality. What do you think about this?
The text was updated successfully, but these errors were encountered:
Hey Leonid,
Sent you a private email earlier today.
Michael
Sorry, something went wrong.
No branches or pull requests
Hi Michael!
Thanks a lot for your crm! It is great!
I want to participate in the development and suggest using configatron gem for handling configuration variables (https://github.com/markbates/configatron).
The main reason is ability to override them in plugins.
When I override ffcrm constants, I get warnings "already initialized constant" at the moment.
For example I want to add ability to comment on models.
In CommentsController you set:
COMMENTABLE = %w(account_id campaign_id contact_id lead_id opportunity_id task_id).freeze
And then I want to override it in my plugin:
CommentsController::COMMENTABLE = CommentsController::COMMENTABLE + ['ClassB', 'ClassA']
Which brings up the error I mentioned above.
Another advantage is that it is faster to get settings from configatron, rather than getting them from DB.
I want to prepare a pull request for you with updated settings functionality. What do you think about this?
The text was updated successfully, but these errors were encountered: