Sha256: 7fc3980d0061d0597f32006c2b3232805f310b52fc839dc0b9a10ab7e97ed942
Contents?: true
Size: 531 Bytes
Versions: 12
Compression:
Stored size: 531 Bytes
Contents
module Globalize2::Compatibility module Paginate::GlobalizeTags include Radiant::Taggable class TagError < StandardError; end tag 'paginate_with_globalize' do |tag| with_translated_locales = tag.attr['locale'] == 'false' ? false : true if with_translated_locales result = Page.scope_locale(I18n.locale.to_s) do send('tag:paginate_without_globalize', tag) end else result = send('tag:paginate_without_globalize', tag) end result end end end
Version data entries
12 entries across 12 versions & 1 rubygems