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

upgrade from 0.5.0 to 3.1.0 #1

Merged
merged 4 commits into from
May 20, 2016
Merged

upgrade from 0.5.0 to 3.1.0 #1

merged 4 commits into from
May 20, 2016

Conversation

ankit1910
Copy link

rewrite javascript using prototype approach
make changes in model
update stylesheets

rewrite javascript using prototype approach
make changes in model
update stylesheets
remove option_value_controllers
def option_values
@_option_values ||= Spree::OptionValue.for_product(self).order(:position).sort_by {|ov| ov.option_type.position }
end
has_many :option_values, -> { uniq }, through: :variants

Choose a reason for hiding this comment

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

@ankit1910 - We don't require to add uniq here.

Copy link
Author

Choose a reason for hiding this comment

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

it is required

@nishant-cyro nishant-cyro merged commit 1a05a1e into master May 20, 2016
@nishant-cyro nishant-cyro deleted the 3-1-rc branch May 20, 2016 07:43
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