Sha256: 2cc902bb629480dd2af5b8ad219958070570f61d7ecf91abb694f23989ad1318

Contents?: true

Size: 414 Bytes

Versions: 17

Compression:

Stored size: 414 Bytes

Contents

module Locomotive  
  module Liquid    
    module Drops    
      class Stylesheets < ::Liquid::Drop  
  
        def initialize(site)
          @site = site
        end
  
        def before_method(meth)          
          asset = @site.theme_assets.where(:content_type => 'stylesheet', :slug => meth.to_s).first
          !asset.nil? ? asset.source.url : nil
        end
  
      end
      
    end  
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.3.1 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.9 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.8 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.7 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.6 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.5 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.4 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.3 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.2 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2.1 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.2 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.1.4 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.1.3 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.1.2 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.1.1 lib/locomotive/liquid/drops/stylesheets.rb
locomotive_cms-0.0.1 lib/locomotive/liquid/drops/stylesheets.rb