Permalink
Browse files

Autocorrect offenses

  • Loading branch information...
mvz committed Jun 7, 2018
1 parent 98b17f7 commit 6e46121bffce775bf9c720e50214351abcb36ed5
@@ -25,7 +25,7 @@ def gravatar_tag(email, options = {})
options[:gravatar_id] = Digest::MD5.hexdigest(email.strip)
options[:default] = CGI.escape(options[:default]) if options.include?(:default)
options[:size] ||= 48
klass = options[:class] ? options[:class] : 'avatar gravatar'
klass = options[:class] || 'avatar gravatar'
url = '//www.gravatar.com/avatar.php?' << options.map { |key, value| "#{key}=#{value}" }.sort.join('&amp;')
tag 'img', src: url, class: klass, alt: 'Gravatar'
@@ -4,7 +4,7 @@ module Admin; end
class Admin::ContentController < Admin::BaseController
def index
@search = params[:search] ? params[:search] : {}
@search = params[:search] || {}
@articles = this_blog.articles.search_with(@search).page(params[:page]).per(this_blog.admin_display_elements)
if request.xhr?
@@ -5,7 +5,7 @@ class Admin::PagesController < Admin::BaseController
before_action :set_page, only: [:edit, :update, :destroy]
def index
@search = params[:search] ? params[:search] : {}
@search = params[:search] || {}
@pages = Page.search_with(@search).page(params[:page]).per(this_blog.admin_display_elements)
end

0 comments on commit 6e46121

Please sign in to comment.