Sha256: 9382efb84f884ed21a9f2ac22cc614f8459a8fe4f1a14c654ce4ad41b096ee27
Contents?: true
Size: 660 Bytes
Versions: 7
Compression:
Stored size: 660 Bytes
Contents
class Skyline::Browser::ImagesController < Skyline::ApplicationController def index @media_dirs = Skyline::MediaDir.group_by_parent_id if params[:referable_type].present? case params[:referable_type] when "Skyline::MediaFile" then @active_tab = "Skyline::MediaFile" @media_file = Skyline::MediaFile.find_by_id(params[:referable_id]) @media_dir = @media_file.directory if @media_file when "Skyline::ReferableUri" then @active_tab = "Skyline::ReferableUri" end end @active_tab ||= "Skyline::MediaFile" render :partial => "index" end end
Version data entries
7 entries across 7 versions & 2 rubygems