fixing bugs
This commit is contained in:
parent
c9e1e3278b
commit
a525e4ccd5
@ -71,7 +71,7 @@ class ThemeAsset
|
|||||||
|
|
||||||
def plain_text
|
def plain_text
|
||||||
if RUBY_VERSION =~ /1\.9/
|
if RUBY_VERSION =~ /1\.9/
|
||||||
@plain_text ||= self.source.read.force_encoding('UTF-8')
|
@plain_text ||= (self.source.read.force_encoding('UTF-8') rescue nil)
|
||||||
else
|
else
|
||||||
@plain_text ||= self.source.read
|
@plain_text ||= self.source.read
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
= f.input :name
|
= f.input :name
|
||||||
= f.input :source
|
= f.input :source
|
||||||
|
|
||||||
- unless @asset.custom_fields.empty?
|
- unless @asset.custom_fields.blank?
|
||||||
= render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @asset_collection
|
= render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @asset_collection
|
||||||
|
|
||||||
- if @asset.image? && @asset.valid?
|
- if @asset.image? && @asset.valid?
|
||||||
|
Loading…
Reference in New Issue
Block a user