Sha256: 69f7744541bdeb90d8859fb9982991a5c634f9463b865b56f6d0a779eb2512ae

Contents?: true

Size: 490 Bytes

Versions: 18

Compression:

Stored size: 490 Bytes

Contents

# append route
Lolita.add_module Lolita::FileUpload, :nested=>true,:route=>lambda{|resource|
  if resource && resource.respond_to?(:lolita) && resource.lolita.tabs.by_type(:files)
    return :file_upload
  end
}
# append fixed gallery
Lolita::Hooks.component(:"/lolita/configuration/tabs/display").before do
  resource_class = self.send(:resource_class)
  if resource_class.lolita.tabs.by_type(:files)
    self.render_component(:"/lolita/configuration/tab/files", :fixed_gallery) 
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
lolita-file-upload-1.0.5 lib/lolita-file-upload/module.rb
lolita-file-upload-1.0.4 lib/lolita-file-upload/module.rb
lolita-file-upload-1.0.3 lib/lolita-file-upload/module.rb
lolita-file-upload-1.0.2 lib/lolita-file-upload/module.rb
lolita-file-upload-1.0.1 lib/lolita-file-upload/module.rb
lolita-file-upload-1.0.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.8.3 lib/lolita-file-upload/module.rb
lolita-file-upload-0.8.2 lib/lolita-file-upload/module.rb
lolita-file-upload-0.8.1 lib/lolita-file-upload/module.rb
lolita-file-upload-0.8.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.7.3 lib/lolita-file-upload/module.rb
lolita-file-upload-0.7.2 lib/lolita-file-upload/module.rb
lolita-file-upload-0.7.1 lib/lolita-file-upload/module.rb
lolita-file-upload-0.6.2 lib/lolita-file-upload/module.rb
lolita-file-upload-0.6.1 lib/lolita-file-upload/module.rb
lolita-file-upload-0.6.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.5.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.4.13 lib/lolita-file-upload/module.rb