Sha256: 6743a17964f9e62e8ec2c5a0fc19f1b5e1aaf65bce7c2411f30ab9855f240c05

Contents?: true

Size: 500 Bytes

Versions: 216

Compression:

Stored size: 500 Bytes

Contents

# -*- encoding : utf-8 -*-
InlineForms::SPECIAL_COLUMN_TYPES[:devise_password_field]=:string

def devise_password_field_show(object, attribute)
  link_to_inline_edit object, attribute, ''
end

def devise_password_field_edit(object, attribute)
  password_field_tag attribute, '', :class => 'input_devise_password_field'
end

def devise_password_field_update(object, attribute)
  if params[attribute.to_sym].blank?
    # nothing happens
  else
    object.password = params[attribute.to_sym]
  end
end

Version data entries

216 entries across 216 versions & 1 rubygems

Version Path
inline_forms-5.0.18 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.17 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.16 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.15 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.6 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.4 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-5.0.0 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.11 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.10 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.9 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.8 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.7 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.6 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.5 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.4 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.3 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.2 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.1 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.2.0 lib/app/helpers/form_elements/devise_password_field.rb
inline_forms-3.1.9 lib/app/helpers/form_elements/devise_password_field.rb