Module: PostsHelper

Included in:
Admin::PostsHelper
Defined in:
lib/ecrire/app/helpers/posts_helper.rb

Instance Method Summary collapse

Instance Method Details

#edit_post_link(options = {}) ⇒ Object



2
3
4
5
6
# File 'lib/ecrire/app/helpers/posts_helper.rb', line 2

def edit_post_link(options = {})
  return unless signed_in?

  link_to t('posts.edit'), edit_admin_post_path(post.id), options
end

#paginate(scope, options = {}, &block) ⇒ Object



8
9
10
11
12
# File 'lib/ecrire/app/helpers/posts_helper.rb', line 8

def paginate(scope, options = {}, &block)
  _with_routes Ecrire::Theme::Engine.routes do
    super
  end
end