Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/spree/admin/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ class Spree::Admin::CommentsController < Spree::Admin::ResourceController
private

def location_after_save
:back
request.referer
end
end
end
2 changes: 1 addition & 1 deletion db/migrate/20091021182639_create_comments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateComments < ActiveRecord::Migration
class CreateComments < ActiveRecord::Migration[4.2]
def self.up
create_table :comments do |t|
t.string :title, :limit => 50
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100406085611_create_comment_types.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateCommentTypes < ActiveRecord::Migration
class CreateCommentTypes < ActiveRecord::Migration[4.2]
def self.up
create_table :comment_types do |t|
t.string :name
Expand Down
4 changes: 2 additions & 2 deletions db/migrate/20100406100728_add_type_to_comments.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class AddTypeToComments < ActiveRecord::Migration
class AddTypeToComments < ActiveRecord::Migration[4.2]
def self.up
add_column :comments, :comment_type_id, :integer
end

def self.down
remove_column :comments, :comment_type_id
end
end
end
2 changes: 1 addition & 1 deletion db/migrate/20111123200847_prefix_tables_with_spree.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PrefixTablesWithSpree < ActiveRecord::Migration
class PrefixTablesWithSpree < ActiveRecord::Migration[4.2]
def change
rename_table :comments, :spree_comments
rename_table :comment_types, :spree_comment_types
Expand Down
2 changes: 1 addition & 1 deletion spree_comments.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'

spree_version = '~> 3.1.0.beta'
spree_version = '~> 3.3.0'
s.add_dependency 'spree_api', spree_version
s.add_dependency 'spree_backend', spree_version
s.add_dependency 'spree_core', spree_version
Expand Down