Sha256: 40bc8b4932beac608dd281d2495f7ce8ac490b08431c522457ab47bbafa801ce

Contents?: true

Size: 182 Bytes

Versions: 2

Compression:

Stored size: 182 Bytes

Contents

module Chive
  module ArticlesHelper
    def user_can_chive?
      if Chive.use_devise?
        user_signed_in?
      else
        Rails.env.development?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chive-0.1.1 app/helpers/chive/articles_helper.rb
chive-0.1.0 app/helpers/chive/articles_helper.rb