summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/source_file.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-29 13:27:30 -0600
committerLuke Kanies <luke@madstop.com>2008-02-29 13:27:30 -0600
commitba2814cb9b769c356416228f4fb7355ae8d67d99 (patch)
tree227bf5368f64da0d8a9f0209aed1020c734330e1 /lib/puppet/rails/source_file.rb
parente008b02ae04594bd53a9aa29c24961a7d9d9763d (diff)
parent9b07758e02fc7347cc4a39ca17fc76a3f95d584f (diff)
downloadpuppet-ba2814cb9b769c356416228f4fb7355ae8d67d99.tar.gz
puppet-ba2814cb9b769c356416228f4fb7355ae8d67d99.tar.xz
puppet-ba2814cb9b769c356416228f4fb7355ae8d67d99.zip
Merge commit 'shadoi/0.24.x' into 0.24.x
Diffstat (limited to 'lib/puppet/rails/source_file.rb')
-rw-r--r--lib/puppet/rails/source_file.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/rails/source_file.rb b/lib/puppet/rails/source_file.rb
index 51d1b1fb5..3ccf87ac6 100644
--- a/lib/puppet/rails/source_file.rb
+++ b/lib/puppet/rails/source_file.rb
@@ -1,5 +1,8 @@
class Puppet::Rails::SourceFile < ActiveRecord::Base
has_one :host
- has_one :puppet_class
has_one :resource
+
+ def to_label
+ "#{self.filename}"
+ end
end