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

Convert admin RABL views to Jbuilder #2146

Merged
merged 1 commit into from
Aug 15, 2017

Conversation

jhawthorn
Copy link
Contributor

No description provided.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Looks legit

@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
s.add_dependency 'jquery-ui-rails', '~> 5.0.0'
s.add_dependency 'font-awesome-rails', '~> 4.0'
s.add_dependency 'kaminari', '>= 0.17', '< 2.0'
s.add_dependency 'jbuilder'
Copy link
Member

Choose a reason for hiding this comment

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

We should set version numbers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 done

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

I’m still confused by the weird “dot parentheses” syntax, but the tests pass, so ¯\_(ツ)_/¯

@cbrunsdon
Copy link
Contributor

When you see anything that looks like this: my_instance.() it calls the call method on that object, if its an object, or will invoke a proc if its a proc.

@jhawthorn
Copy link
Contributor Author

When you see anything that looks like this: my_instance.() it calls the call method on that object, if its an object, or will invoke a proc if its a proc.

Yeah, JBuilder uses this (maybe too) cleverly as a shorthand for multiple attributes. I replaced a few spots where it didn't make sense to use this over explicitly declaring the attributes on separate lines.

@jhawthorn jhawthorn merged commit 4c2db3e into solidusio:master Aug 15, 2017
JuanCrg90 added a commit to JuanCrg90/solidus that referenced this pull request Nov 10, 2019
RABL was removed from the project on version 2.4.0 (See solidusio#2147 solidusio#2146).
This updates the responder template to match with Jbuilder and updates
the README file.
@JuanCrg90 JuanCrg90 mentioned this pull request Nov 10, 2019
5 tasks
JuanCrg90 added a commit to JuanCrg90/solidus that referenced this pull request Nov 15, 2019
RABL was removed from the project on version 2.4.0 (See solidusio#2147 solidusio#2146).
This updates the responder template to match with Jbuilder and updates
the README file.
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.

3 participants