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