Hi, 

What's the best Sequel way to protect sensitive columns such as passwords, 
etc from being exposed when a model is inspect'ed?? Is it even possible?


# Example

DB = Sequel.sqlite
Sequel::Model.plugin(:schema)

class User < Sequel::Model
  set_schema do
    primary_key :id
    String :name
    String :password
    String :supersecret
  end
end

User.create_table! unless DB.tables.include?(:users)

u = User.create(name: 'Joe Blogs', password: 's3cr3t', supersecret: 
'topsecret')

# dumping a user without the password and secret
puts u.inspect  #=> #<User @values={ :id=>1, :name=>"Joe Blogs" }>


Thanks for your time.


-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to