Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
class Riddle
include DataMapper::Resource
property :id, Serial
property :created_at, DateTime
property :updated_at, DateTime
property :title, String
property :html, Text
property :html_engine, String
property :css, Text
property :css_engine, String
property :js, Text
property :js_engine, String
def title=(value)
super(value.empty? ? "Yet another untitled Riddle" : value)
end
end
DataMapper.finalize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.