Skip to content

Refinery Core 4.0 compatibility#56

Open
wvk wants to merge 7 commits intorefinery:masterfrom
wvk:master
Open

Refinery Core 4.0 compatibility#56
wvk wants to merge 7 commits intorefinery:masterfrom
wvk:master

Conversation

@wvk
Copy link

@wvk wvk commented Aug 13, 2018

just that.

Copy link
Member

@bricesanchez bricesanchez left a comment

Choose a reason for hiding this comment

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

Thanks @wvk !

This extension really needed to be updated.

Could you read my review and make the changes?

Rakefile Outdated
load File.expand_path('../tasks/rspec.rake', __FILE__)

task :default => :spec No newline at end of file
task :default => :spec
Copy link
Member

Choose a reason for hiding this comment

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

You could use the new syntax

task default: :spec

present(@page)
respond_with (@events) do |format|
format.html
# format.rss { render layout: false }
Copy link
Member

Choose a reason for hiding this comment

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

You should not leave this commented code in the pull request.

Copy link
Member

Choose a reason for hiding this comment

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

If you are using format.html only, you should keep the previous code with present(@page) and removing respond_to :html

# you can use meta fields from your model instead (e.g. browser_title)
# by swapping @page for @event in the line below:
present(@page)
respond_with (@event) do |format|
Copy link
Member

Choose a reason for hiding this comment

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

Same comment as before

require 'rails_autolink'
require 'friendly_id'
require 'jquery-ui-rails'
require 'globalize'
Copy link
Member

Choose a reason for hiding this comment

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

You could safely remove this dependency globalize

include ActiveSupport::Configurable

config_accessor :page_url
# :validate_source_url, :comments_per_page, :posts_per_page,
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove all config you don't use ?

@bricesanchez
Copy link
Member

@wvk I will check the specs after your changes. :)

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