Sha256: 296acd23ba93f6d243703476c37b4ee724c48567cf56288abcf52996c272232f
Contents?: true
Size: 423 Bytes
Versions: 7
Compression:
Stored size: 423 Bytes
Contents
class UseVanityController < ActionController::Base class TestModel def test_method Vanity.ab_test(:pie_or_cake) end end attr_accessor :current_user def index render :text=>Vanity.ab_test(:pie_or_cake) end def js Vanity.ab_test(:pie_or_cake) render :inline => "<%= vanity_js -%>" end def model_js TestModel.new.test_method render :inline => "<%= vanity_js -%>" end end
Version data entries
7 entries across 7 versions & 1 rubygems