Sha256: 0ee13e11a3e13ded44d12328689963e713ece5edf3bc8a8a6a016ba268d3640f

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

module InterfaceBuilder
  module ViewHelper
    # 
    # Basic
    # 
    def b
      @b ||= InterfaceBuilder::ViewBuilder.new self
    end
    alias_method :builder, :b

    def themed_resource resource
      "/#{InterfaceBuilder.plugin_name.should_not_be!(:blank)}/themes/#{current_theme.name}/#{resource}"
    end

    # def current_layout
    #   @current_layout || "default"
    # end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-ext-0.3.27 lib/interface_builder/view_helper.rb