Sha256: 220b7496267ac793e20dc439ea85153bc18a7a4671afea11d91c075f3a0191a8

Contents?: true

Size: 279 Bytes

Versions: 54

Compression:

Stored size: 279 Bytes

Contents

module PushType
  module UsersHelper

    def last_logged_in(user)
      if user.respond_to?(:current_sign_in_at) && user.current_sign_in_at?
        "Logged in #{ time_ago_in_words user.current_sign_in_at } ago"
      else
        'Never logged in'
      end
    end

  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.12.0 app/helpers/push_type/users_helper.rb
push_type_admin-0.12.0.beta.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.11.2 app/helpers/push_type/users_helper.rb
push_type_admin-0.11.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.11.0.beta.2 app/helpers/push_type/users_helper.rb
push_type_admin-0.11.0.beta.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.4 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.3 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.2 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.0 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.0.beta.5 app/helpers/push_type/users_helper.rb
push_type_admin-0.10.0.beta.3 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.5 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.3 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.2 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.1 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.0 app/helpers/push_type/users_helper.rb
push_type_admin-0.9.0.beta.4 app/helpers/push_type/users_helper.rb