Sha256: 81fb58e06fc772a352826513e49023f3e8eeccda9a2eb0aaeebc8e29f20debbf
Contents?: true
Size: 714 Bytes
Versions: 3
Compression:
Stored size: 714 Bytes
Contents
module RedactorRails module Orm module Base module AssetBase module InstanceMethods def has_dimensions? respond_to?(:width) && respond_to?(:height) end def image? RedactorRails::IMAGE_TYPES.include?(data_content_type) end def image url end def thumb url(:thumb) end def as_json_methods [:image, :thumb] end def as_json(options = nil) options = { methods: as_json_methods, root: false } super options end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems