class Spyro::ActionViewExtension::CollectionForHelper::Output::Base

Public Class Methods

new(unicollection, helper, parser_class) click to toggle source
# File lib/spyro/collections/outputs/base.rb, line 10
def initialize unicollection, helper, parser_class
  @unicollection = unicollection
  @h = helper
  @parser_class = parser_class
end

Public Instance Methods

t(name) click to toggle source
# File lib/spyro/collections/outputs/base.rb, line 16
def t name
  I18n.t("#{params[:controller].gsub('/', '.')}.#{params[:action]}.table.#{name.downcase}", :default => I18n.t("scaffold.table.#{name.downcase}", :default => name.to_s.humanize))
end