-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from github/view-component-base
rename ActionView::Component to ViewComponent
- Loading branch information
Showing
97 changed files
with
820 additions
and
789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
|
||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "action_view/component/version" | ||
require "view_component/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "actionview-component" | ||
spec.version = ActionView::Component::VERSION::STRING | ||
spec.version = ViewComponent::VERSION::STRING | ||
spec.authors = ["GitHub Open Source"] | ||
spec.email = ["[email protected]"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
require "active_model" | ||
require "action_view" | ||
require "active_support/dependencies/autoload" | ||
require "action_view/component/engine" | ||
|
||
module ActionView | ||
module Component | ||
extend ActiveSupport::Autoload | ||
|
||
autoload :Base | ||
autoload :Conversion | ||
autoload :Preview | ||
autoload :Previewable | ||
autoload :TestHelpers | ||
autoload :TestCase | ||
autoload :RenderMonkeyPatch | ||
autoload :RenderingMonkeyPatch | ||
autoload :TemplateError | ||
end | ||
end | ||
|
||
ActiveModel::Conversion.include ActionView::Component::Conversion | ||
require "view_component" |
Oops, something went wrong.