Revision acdcda07
Added by Marek Hulán over 7 years ago
app/models/template.rb | ||
---|---|---|
|
||
before_save :remove_trailing_chars
|
||
|
||
attr_exportable :name, :snippet
|
||
attr_exportable :name, :snippet, :model => ->(template) { template.class.to_s }
|
||
|
||
class Jail < Safemode::Jail
|
||
allow :name
|
Also available in: Unified diff
Fixes #17623 - include model in metadata
(cherry picked from commit f34f70d285d8a7d9a363dd5c7e8f9b9f861ac67f)