lib/locomotive/coal/resources/snippets.rb in locomotivecms_coal-1.0.0.pre.alpha.3 vs lib/locomotive/coal/resources/snippets.rb in locomotivecms_coal-1.0.0.pre.beta.1

- old
+ new

@@ -1,9 +1,17 @@ module Locomotive::Coal module Resources class Snippets < Base + def index(locale = nil) + get(resources_name, _locale: locale).map do |attributes| + Resource.new(attributes) + end + end + + alias :all :index + end end end