aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-11-15 16:57:20 +0100
committerJosé Valim <jose.valim@gmail.com>2010-11-16 00:04:37 +0100
commit6a609dbc82d03eb92a85970aa157192657f14882 (patch)
tree555a8029cef31d2c5172c17df14512c699de6af7 /actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
parent6747ae2708d2ad8a482f3dfcb346d007a51af77a (diff)
downloadrails-6a609dbc82d03eb92a85970aa157192657f14882.tar.gz
rails-6a609dbc82d03eb92a85970aa157192657f14882.tar.bz2
rails-6a609dbc82d03eb92a85970aa157192657f14882.zip
incorporated most of the feedback from José
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb21
1 files changed, 14 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
index f22ca785d3..b9f450cba3 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
@@ -1,4 +1,4 @@
-require 'active_support/core_ext/module/attribute_accessors'
+require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/file'
require 'action_view/helpers/tag_helper'
@@ -11,18 +11,25 @@ module ActionView
module AssetTagHelper
class AssetIncludeTag
- include AssetIdCaching
include CommonAssetHelpers
+ include AssetIdCaching
- class_attribute :asset_name
- class_attribute :extension
+ attr_reader :config, :controller
- attr_reader :config, :controller, :expansions
+ class_attribute :expansions
+ self.expansions = { }
- def initialize(config, controller, expansions)
+ def initialize(config, controller)
@config = config
@controller = controller
- @expansions = expansions
+ end
+
+ def asset_name
+ raise NotImplementedError
+ end
+
+ def extension
+ raise NotImplementedError
end
def custom_dir