Sha256: 2d77eab3d512fd4c6b1e52d613a299578a6a2d9e9ce0df45752e21909069ae4b
Contents?: true
Size: 840 Bytes
Versions: 11
Compression:
Stored size: 840 Bytes
Contents
# Override global `draft` class. For example, perhaps you want your own class at `app/models/draft.rb` that adds # extra attributes, validations, associations, methods, etc. Be sure that this new model class extends # `Draftsman::Draft`. # Draftsman.draft_class_name = 'Draftsman::Draft' # Serializer for `object`, `object_changes`, and `previous_draft` columns. To use the JSON serializer, change to # `Draftsman::Serializers::Json`. You could implement your own serializer if you really wanted to. See files in # `lib/draftsman/serializers`. # # Note: this option is not needed if you're using the PostgreSQL JSON data type for the `object`, # `object_changes`, and `previous_draft` columns. # Draftsman.serializer = Draftsman::Serializers::Json # Field which records when a draft was created. # Draftsman.timestamp_field = :created_at
Version data entries
11 entries across 11 versions & 1 rubygems