Sha256: 1a6edea238d5b7c06cb035a68a542bdc160d031eef7c094d62fff8f65dcde0fc
Contents?: true
Size: 690 Bytes
Versions: 7
Compression:
Stored size: 690 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 } super options end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems