mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
add new lines 😓
This commit is contained in:
parent
492a6a5bc4
commit
24ba88eb1c
15 changed files with 12 additions and 15 deletions
|
@ -8,4 +8,3 @@ require 'draper/view_context'
|
|||
require 'draper/decorated_enumerable_proxy'
|
||||
require 'draper/rspec_integration' if defined?(RSpec) and RSpec.respond_to?(:configure)
|
||||
require 'draper/railtie' if defined?(Rails)
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ module Draper::HelperSupport
|
|||
def decorate(input, &block)
|
||||
capture { block.call(input.decorate) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,4 +8,4 @@ module Draper
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -19,4 +19,3 @@ module Draper
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -29,4 +29,4 @@ class <%= resource_name.singularize.camelize %>Decorator < ApplicationDecorator
|
|||
# h.content_tag :span, time.strftime("%a %m/%d/%y"),
|
||||
# :class => 'timestamp'
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,4 +9,3 @@ class <%= resource_name.singularize.camelize %>DecoratorTest < ActiveSupport::Te
|
|||
# assert true
|
||||
# end
|
||||
end
|
||||
|
||||
|
|
|
@ -36,4 +36,4 @@ module Draper
|
|||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,4 +25,4 @@ class ApplicationDecorator < Draper::Base
|
|||
# def updated_at
|
||||
# formatted_timestamp(model.updated_at)
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,4 +12,4 @@ class Rails::DecoratorGenerator < Draper::DecoratorGenerator
|
|||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module ActiveRecord
|
||||
class Base
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,4 +17,4 @@ class FastProduct < ActiveRecord::Base
|
|||
def hello_world
|
||||
"Hello, World"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,4 +2,4 @@ module ApplicationHelper
|
|||
def hello_world
|
||||
"Hello, World!"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,4 +2,4 @@ class Decorator < Draper::Base
|
|||
def self.own_class_method
|
||||
"own class method"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class DecoratorWithAllows < Draper::Base
|
||||
allows :goodnight_moon
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require './spec/support/samples/product_decorator'
|
||||
|
||||
class SpecificProductDecorator < ProductDecorator
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue