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
alignment
Passing in config.alignment in the config file should change the alignment of the widget.
config.alignment
The Rails app won't start, because 'alignment' is not a supported config option.
config.alignment = 'left'
/Users/amitree/workspace/amitree/config/initializers/intercom_rails.rb:8:in `block in <top (required)>': undefined method `alignment=' for IntercomRails::Config:Class (NoMethodError)
You can get around this error by putting alignment in config.user.custom_data
config.user.custom_data
config.user.custom_data = { 'alignment' => Proc.new { |_current_user| 'left' }, ... }
This is undocumented and not obvious, and also it is unclear if it will have unknown side effects.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version info
Expected behavior
Passing in
config.alignment
in the config file should change the alignment of the widget.Actual behavior
The Rails app won't start, because 'alignment' is not a supported config option.
Steps to reproduce
config.alignment = 'left'
to your intercom-rails config fileLogs
Notes
You can get around this error by putting
alignment
inconfig.user.custom_data
This is undocumented and not obvious, and also it is unclear if it will have unknown side effects.
The text was updated successfully, but these errors were encountered: