Sha256: f4e00c9263c9659cc58712dcf5b38df65c8ba812200e7a19b312ea1bc51b8dbc
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 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, 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`. # Draftsman.serializer = Draftsman::Serializers::Json # Field which records when a draft was created. # Draftsman.timestamp_field = :created_at
Version data entries
4 entries across 4 versions & 1 rubygems