Change Fixnum to Integer
This commit is contained in:
@@ -5,7 +5,7 @@ module Cmtool
|
||||
|
||||
property :file_file_name
|
||||
property :file_content_type
|
||||
property :file_file_size, type: Fixnum
|
||||
property :file_file_size, type: Integer
|
||||
property :file_updated_at, type: Time
|
||||
has_attached_file :file, styles: { page: '728x10000>', medium: "354x1000>", thumb: "160x1250>" },
|
||||
path: ":rails_root/public/system/:attachment/:id/:style.:extension",
|
||||
|
||||
@@ -10,7 +10,7 @@ module Cmtool
|
||||
|
||||
property :image_file_name
|
||||
property :image_content_type
|
||||
property :image_file_size, type: Fixnum
|
||||
property :image_file_size, type: Integer
|
||||
property :image_updated_at, type: Time
|
||||
|
||||
has_attached_file :image, styles: { :medium => "500x500>", :thumb => "250x250>" }
|
||||
|
||||
@@ -7,24 +7,24 @@ module Cmtool
|
||||
property :function
|
||||
property :state
|
||||
property :body
|
||||
property :active, :type => :boolean, :default => true
|
||||
property :active, type: :boolean, default: true
|
||||
property :locale
|
||||
|
||||
property :image_file_name
|
||||
property :image_content_type
|
||||
property :image_file_size, :type => Fixnum
|
||||
property :image_updated_at, :type => Time
|
||||
property :image_file_size, type: Integer
|
||||
property :image_updated_at, type: Time
|
||||
|
||||
has_attached_file :image, :styles => {:medium => "300x1000>", :thumb => "137x1250>" }
|
||||
has_attached_file :image, styles: {medium: "300x1000>", thumb: "137x1250>" }
|
||||
|
||||
view :for_sidebar_view, :key => [:state, :created_at], :conditions => %{doc['active']}
|
||||
view :for_sidebar_view, key: [:state, :created_at], conditions: %{doc['active']}
|
||||
STATES = %w[page sidebar]
|
||||
def self.active(*args)
|
||||
database.view(for_sidebar_view(*args))
|
||||
end
|
||||
|
||||
def self.for_page
|
||||
active(:startkey => ['page'], :endkey => ['page', {}])
|
||||
active(startkey: ['page'], endkey: ['page', {}])
|
||||
end
|
||||
|
||||
def self.states
|
||||
@@ -32,7 +32,7 @@ module Cmtool
|
||||
end
|
||||
|
||||
def self.for_sidebar
|
||||
active(:startkey => ['sidebar'], :endkey => ['sidebar', {}], :limit => 2)
|
||||
active(startkey: ['sidebar'], endkey: ['sidebar', {}], limit: 2)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user