Skip to content

Commit 437ebeb

Browse files
authored
Merge pull request #3 from deseretbook/solidus-2.0
Solidus 2.0
2 parents 73d3552 + 4e58aa2 commit 437ebeb

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Gemfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ source 'https://rubygems.org'
22

33
gem 'therubyracer', group: :development
44

5-
gem 'solidus', '~> 1.4.0'
5+
gem 'solidus', '~> 2.0.0'
66
gem 'solidus_auth_devise'
77
gem 'solidus_backend'
88
gem 'solidus_api'
9-
gem 'solidus_i18n'
9+
# Specify which solidus_i18n and master branch to allow us to use solidus 2.0
10+
gem 'solidus_i18n', github: 'solidusio-contrib/solidus_i18n', branch: 'master'
1011

1112
group :development, :test do
1213
# Call `binding.pry` anywhere in the code to stop execution and get a debugger console.

app/controllers/spree/admin/notes_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Spree::Admin::NotesController < Spree::Admin::BaseController
22

3-
before_filter :load_noteable
3+
before_action :load_noteable
44

55
def create
66
@note = Spree::Note.new(note_params)
@@ -9,7 +9,7 @@ def create
99
@note.save
1010

1111
flash[:success] = "Note Saved"
12-
redirect_to :back
12+
redirect_back(fallback_location: root_path)
1313
end
1414

1515
protected

app/controllers/spree/admin/users_controller_decorator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Spree::Admin::UsersController.class_eval do
2-
append_before_filter :load_user_orders, only: :edit
2+
append_before_action :load_user_orders, only: :edit
33

44
private
55

db/migrate/20140627182438_create_spree_notes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateSpreeNotes < ActiveRecord::Migration
1+
class CreateSpreeNotes < ActiveRecord::Migration[4.2]
22
def change
33
create_table :spree_notes do |t|
44
t.references :noteable, polymorphic: true, index: true

solidus_notes.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Gem::Specification.new do |s|
22
s.platform = Gem::Platform::RUBY
33
s.name = 'solidus_notes'
4-
s.version = '1.4.0'
4+
s.version = '2.0.0'
55
s.summary = 'Allows admins to add custom notes to orders and users'
66
s.description = 'Allows admins to add custom notes to orders and users'
7-
s.required_ruby_version = '>= 1.9.3'
7+
s.required_ruby_version = '>= 2.2.2'
88

99
s.author = 'Chris Ewa;d'
1010
s.email = '[email protected]'

0 commit comments

Comments
 (0)