Sha256: 7ef8bd129ac48fa6ef6b6256bfef588e03304d3c646efeb97012e4fe65288b98

Contents?: true

Size: 454 Bytes

Versions: 13

Compression:

Stored size: 454 Bytes

Contents

module Cell::Translation
  def self.included(includer)
    super
    includer.inheritable_attr :translation_path
  end

  def initialize(*)
    super
    @virtual_path = translation_path
  end

private
  # If you override this to change this path, please report it on the trailblazer/chat gitter channel,
  # so we can find out best practices.
  def translation_path
    self.class.translation_path or self.class.controller_path.gsub("/", ".")
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cells-rails-0.1.6 lib/cell/translation.rb
cells-rails-0.1.5 lib/cell/translation.rb
cells-rails-0.1.4 lib/cell/translation.rb
cells-rails-0.1.3 lib/cell/translation.rb
cells-rails-0.1.2 lib/cell/translation.rb
cells-rails-0.1.1 lib/cell/translation.rb
cells-rails-0.1.0 lib/cell/translation.rb
cells-rails-0.0.9 lib/cell/translation.rb
cells-rails-0.0.8 lib/cell/translation.rb
cells-rails-0.0.7 lib/cell/translation.rb
cells-rails-0.0.6 lib/cell/translation.rb
cells-rails-0.0.5 lib/cell/translation.rb
cells-rails-0.0.4 lib/cell/translation.rb