Sha256: a10fc504418d9d0cd5d2f7bfae1d0aa0e82b16dc5abeb64254c28840f05304fa

Contents?: true

Size: 388 Bytes

Versions: 14

Compression:

Stored size: 388 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lolita-file-upload-0.3.0.1 lib/lolita-file-upload/module.rb
lolita-file-upload-0.4.7 lib/lolita-file-upload/module.rb
lolita-file-upload-0.4.2 lib/lolita-file-upload/module.rb
lolita-file-upload-0.4.1 lib/lolita-file-upload/module.rb
lolita-file-upload-0.4.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.3.0 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.9 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.8 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.7 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.6 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.5 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.4 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.3 lib/lolita-file-upload/module.rb
lolita-file-upload-0.2.2 lib/lolita-file-upload/module.rb