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

Refinery Core 4.0 compatibility #56

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Refinery Core 4.0 compatibility #56

wants to merge 7 commits into from

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
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