lib/annex/view_helpers.rb in annex-cms-0.1.8 vs lib/annex/view_helpers.rb in annex-cms-0.2.0

- old
+ new

@@ -16,14 +16,10 @@ doc = Annex::Block.where(route: opts[:route]).first_or_create content = doc.content.try(:[], identifier.to_s) || opts[:default] - render partial: 'annex/block', locals: { content: content, route: opts[:route], identifier: identifier, opts: opts } - end - - def annex_clips(clip) - render partial: 'annex/clips' + render partial: 'annex/block', locals: { content: content, identifier: identifier, opts: opts } end def current_route "#{I18n.locale}_#{params[:controller]}_#{params[:action]}".to_sym end