Sha256: f7726eb2f6804eef441c8430d85639335db483f47832c59dcb2b5b232c6e79e4

Contents?: true

Size: 277 Bytes

Versions: 13

Compression:

Stored size: 277 Bytes

Contents

module UsersHelper       
  def password_style(user)
    show_openid ? "display:none" : ""
  end         
  def openid_style(user) 
    show_openid ? "": "display:none"
  end
  
  private 
  def show_openid
    Spree::Config[:allow_openid] and @user.openid_identifier
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
spree-0.11.4 app/helpers/users_helper.rb
spree-0.11.3 app/helpers/users_helper.rb
spree_core-0.30.2 app/helpers/users_helper.rb
spree_core-0.30.1 app/helpers/users_helper.rb
spree_core-0.30.0 app/helpers/users_helper.rb
spree-0.11.2 app/helpers/users_helper.rb
spree-0.11.1 app/helpers/users_helper.rb
spree_core-0.30.0.beta1 app/helpers/users_helper.rb
spree-0.11.0 app/helpers/users_helper.rb
spree-0.10.2 app/helpers/users_helper.rb
spree-0.10.1 app/helpers/users_helper.rb
spree-0.10.0 app/helpers/users_helper.rb
spree-0.10.0.beta app/helpers/users_helper.rb