Sha256: d45b253bd7d023c3914195664079af5dc3f92d48902b208807082fdd5cc5727b
Contents?: true
Size: 415 Bytes
Versions: 6
Compression:
Stored size: 415 Bytes
Contents
module Locomotive class AccountPresenter < BasePresenter ## properties ## properties :name, :email, :locale, :encrypted_password, :password_salt property :admin, only_getter: true with_options only_setter: true do |presenter| presenter.properties :password, :password_confirmation end ## other getters / setters ## def admin self.__source.admin? end end end
Version data entries
6 entries across 6 versions & 1 rubygems